Answer the question
In order to leave comments, you need to log in
How do you save data from CKeditor?
Well, it seems that the final touch is left ...
I'm twisting the content editor. For normal textarea implemented simply. When focus appears, a label appears - editing, when focus is lost - it is saved via ajax.
But with the field that is replaced by ckeditor, there is no complete understanding.
The field does not respond to the standard focus... I
found the following in the documentation:
var focusManager = new CKEDITOR.focusManager( editor );
focusManager.focus();
editor.on( 'change', function( evt ) {
alert( CKEDITOR.instances.ck.focusManager.hasFocus );
});
editor.on('focus',function(evt){
alert( CKEDITOR.instances.ck.focusManager.hasFocus );
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question