N
N
netrox2018-03-26 21:27:38
PHP
netrox, 2018-03-26 21:27:38

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 question

Ask a Question

731 491 924 answers to any question