Opened 3 years ago

Closed 3 years ago

#14735 closed Task (invalid)

setData() method sometimes not displaying the data in the CkEditor

Reported by: sateeshj Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 4.5.7
Keywords: Cc: bhanuchander.konani@…

Description

Hi,

We are using ajax calls to get data from database( rest service) and showing in the CkEditor on the page. When the setData() method is being used, sometimes it happens that the data is not displayed in the CKEditor.

For example code we are using:

CKEDITOR.instances.applicationText.setData(pvdRichTextItems[i].CategoryText);

CKEDITOR.instances.applicationText.updateElement();

Did any one have seen this issue.

Your help is much appreciated.

Thanks

We are seeing an issue when the setData() method is use

Change History (1)

comment:1 Changed 3 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

I'm sorry but this is a place for reporting CKEditor bugs and not place for seeking advice or support.

If you have CKEditor license, please contact our support team. You also can ask your implementation questions at Stack Overflow.

NOTE: I would strongly recommend setting data once editor is fully loaded e.g.

var editor = CKEDITOR.replace( 'editor1', {});
editor.on( "instanceReady", function( event ){
    editor.setData('your data');
});
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy