我試圖在php中安裝ckeditor,但沒有結果:S。我的ckeditor未加載工具欄
我已上載的CKEditor文件到網站的根和我有一個editor.html文件,其中i有這樣的代碼:
<html>
<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>
<form method="post">
<p>
My Editor:<br />
<textarea id="editor1" name="editor1"><p>Initial value.</p></textarea>
<script type="text/javascript">
CKEDITOR.replace('editor1');
</script>
</p>
<p>
<input type="submit" />
</p>
</form>
當我打開頁面時,它不顯示工具欄,除了簡單的textarea。
你們有沒有人知道我在這裏實際上失蹤了什麼?
您的代碼看起來不錯。檢查'/ ckeditor /'的位置 – 2012-07-20 07:37:12