Reputation: 526
Why doesn't the ck editor load the last change that I made in source mode? If I have disabled the ck_editor, then the textarea will show all the data. This is my code:
<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>
Upvotes: 0
Views: 47
Reputation: 126
Try this:
<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>
Upvotes: 0
Reputation: 526
it was about CKEditor Data Filtering and Features Activation .
the answer was here. CKEditor automatically strips classes from div
Upvotes: 1