Hey everyone,
I'm fairly new to ckeditor but I've looked the API over quite a bit. My problem is this:
If I want to use javascript to stop the cursor from blinking in the editor, my solutions so far are not very good. The blinking happens of course when the editor gains focus. I've tried to do
My solution is to call
This isn't a good enough solution because it causes the editor to reload and it flickers when the style is being applied. The client sees this flicker as unstable.
Any help would be greatly appreciated.
I'm fairly new to ckeditor but I've looked the API over quite a bit. My problem is this:
If I want to use javascript to stop the cursor from blinking in the editor, my solutions so far are not very good. The blinking happens of course when the editor gains focus. I've tried to do
editor.focusManager.blur()and
.forceBlur()but they don't quite simulate a real blur.
jQuery('#someIdThatExists').trigger('click');in hopes of triggering the blur event and moving the cursor elsewhere but this doesn't work (I do not have an input box to put focus on, nor would I want to).
My solution is to call
editor.setReadOnly(true); editor.setReadOnly(false);//this is done with a setTimeout
This isn't a good enough solution because it causes the editor to reload and it flickers when the style is being applied. The client sees this flicker as unstable.
Any help would be greatly appreciated.