Everytime a page loads I need to load text into the CK Editor using JQuery, in order to get data from CK Editor I use
var editor_data = CKEDITOR.instances[\'
From my experience using inside a function sometimes doesn't work properly. I'll suggest to use in:
$(document).ready(function () { ... // instance, using default configuration. CKEDITOR.replace('editor1'); //set data CKEDITOR.instances['editor1'].setData(data); ... });