这是我的代码:http://pastebin.com/bL9pacC7
我一直在尝试将textarea普通文本框替换为CKEditor,是否有人可以帮助我?我在这方面很陌生,所以我会提前说我对我的无聊感到抱歉。
答案 0 :(得分:2)
如果你想使用"替换为"方法,您应该将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