ck_editor 不加载真实数据

ck_editor doesn't load real data

为什么 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>

试试这个:

<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>

它是关于 CKEditor 数据过滤和功能激活。

答案就在这里。 CKEditor automatically strips classes from div