Hi,
Jquery events (like click,onblour,change..) not working for CKEDITOR.replace but working for CKEDITOR.inline.
my editor code:-
'<textarea id="editor_content" name="editor_content" contenteditable="true">
<h1 class="article-title">Article title</h1>'
</textarea>'
config:-
In this code click function does not work.
"CKEDITOR.replace( 'editor_content', {
on: {
instanceReady: function() {
$(".article-title").click(function(){
alert('test');
});
},
}
} );"
If i do change in code "replace" to "inline" then click function work. code:-
"CKEDITOR.inline( 'editor_content', {
on: {
instanceReady: function() {
$(".article-title").click(function(){
alert('test');
});
},
}
} );"
i don't want to inline editor. without inline jquery events not working.
please help me out !
Thanks in advance.