为什么ck编辑器不加载我在源代码模式中所做的最后一次更改?如果我禁用了ck_editor,那么文本区将显示所有数据。这是我的代码:
<textarea name="content" id="editor1" rows="10" cols="80">
<?php print $selecteddata['content']; ?>
</textarea>
<script>
// Replace the <textarea id="editor1"> with a CKEditor
// instance, using default configuration.
CKEDITOR.replace( 'content' ,{
filebrowserBrowseUrl : './public/browse.php',
filebrowserUploadUrl : '/uploader/index.php',
uiColor : '#9AB8F3'
});
</script>发布于 2016-08-03 23:05:12
它是关于CKEditor数据过滤和功能激活的。
发布于 2016-08-03 16:40:44
试试这个:
<textarea name="content" id="editor1" rows="10" cols="80">
<?php print $selecteddata['content']; ?>
</textarea>
<script>
$(window).load(function(){
if (typeof(CKEDITOR.instances['content'])=='undefined') {
CKEDITOR.replace( 'content',{
filebrowserBrowseUrl : './public/browse.php',
filebrowserUploadUrl : '/uploader/index.php',
uiColor : '#9AB8F3'
});
}
});
</script>https://stackoverflow.com/questions/38738101
复制相似问题