I'm new to CKEditor, so please excuse if this has been answered before.
I have an intermittent problem when using the plugin - in that focus is not always working, until I minimise the control, and then maximise it again.
I have the CKEditor control on a pane which we show and hide dynamically in jquery (initially minimised) The control may be populated with data - but when the problem occurs, the data can't be seen - as soon as an update is done, the data is visible as I would expect.
Does anyone have any ideas on what could be causing this?
Maybe horse before the cart?
Maybe horse before the cart? order of operations issue? Maybe you are loading the data too late or not refreshing the editor area? focus only does focus as I believe, not refreshing
But where?
I've followed the tutorial for asp.net page, and have used the plugin, and setup the var EditorID, before the document.ready
Sometimes(mosttimes) it works, sometimes it doesn't.
If I slow it down with alerts, or breakpoints, it always works, so is obviously(??) a timing issue.
Is there a property that I can check to see if its fully initialised?
Maybe after inserting the
Maybe after inserting the data to the editor you can call a refresh on the editor? if its just in the intitial load where the problem is you can put the data after the editor initializes . I think there is a function that is called after it is fully loaded
Which function
That would be really handy to know ..?
try looking around for
try looking around for CKEDITOR.on('instanceReady', function() . I see many hits leading to forums on stackoverflow and others, not so much in ckeditor.com but it seems you can attach a function to happen when instanceready happens. in there you can add your data.
I know its hard to find stuff in the forums and documentation but for a free editor there really are more good points than bad. And sometimes you just have to try try try until you get it right. there are many ways to accomplish different things so sometimes there is no "one" way to do it