我在安装ckeditor时遇到一些问题,有人可能会帮助我吗?

时间:2014-11-24 12:44:44

标签: ckeditor editor textarea

这是我的代码:http://pastebin.com/bL9pacC7

我一直在尝试将textarea普通文本框替换为CKEditor,是否有人可以帮助我?我在这方面很陌生,所以我会提前说我对我的无聊感到抱歉。

1 个答案:

答案 0 :(得分:2)

如果你想使用&#34;替换为&#34;方法,您应该将ckeditor类直接分配给要用CKEditor替换的<textarea>元素,所以请尝试:

<textarea class="ckeditor" name="pagecontent" id="pagecontent" cols="50" rows="5">
   <?php echo($pagecontent) ?>
</textarea>

在此处查看示例(尽管没有PHP):http://ckeditor.com/latest/samples/replacebyclass.html