Answer the question
In order to leave comments, you need to log in
Why doesn't CKeditor display pasted HTML?
When filling in a field in SKeditor, they are saved in the html markup. After fetching and pasting the same data from the database into the teaxarea CKeditor is not displayed. How can this be resolved?
CKEDITOR.replace( 'editor',
{
on:{
instanceReady: function (evt) {
CKEDITOR.instances.my_editor.insertHtml('<?php echo $data;?>');
evt.editor.document.getBody().setStyles({color: 'black', 'font-size': '18px'});
}
} });
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question