0
I’m trying to activate a function within the text area of the ckeditor like onclick, onload, onkeypress or onkeyup, it works perfectly`te in "normal" textareas but when I implement the ckeditor it "blocks" it
echo"<textarea id='editor1' name='descricao' class='form-control' rows='10' required >$descricao</textarea>"; ?>
CKEDITOR.replace( 'editor1' );
$(Document). ready(Function(){ $.fn.modal.Constructor.prototype. _enforceFocus = Function(){};
});
I couldn’t make an Alert echo"<textarea id='editor1' name='Descricao' class='form-control' Rows='10' required >$Descricao</textarea>"; ? > <script> CKEDITOR.replace( 'editor1' ); var editor = CKEDITOR.replace('editor1'); editor.on('pluginsLoaded', Function(){ editor.on('contentDom', Function(){ var Editable = editor.Editable(); Editable.on('keyup', Function(){ Alert('123'); }); }); }); $(Document). ready(Function(){ $.fn.modal.Constructor.prototype._enforceFocus = Function(){}; }); </script>
– Victor Hugo Liboni Abrão
Could you help me?
– Victor Hugo Liboni Abrão
You put
CKEDITOR.replace( 'editor1' );
twice. Delete the first and leave only thevar editor = CKEDITOR.replace('editor1');
.– Sam