hi i have ckeditor and one button for save ckeditor text whith ajax .
<textarea id="editor1" name="editor1"></textarea>
<input type="button" name="send" id="send" value="Send" onclick="save()">
i want remove button and when key press enter save text whith ajax ( run save function )
but when press enter in ckeditor line break . and how use enter exchange button?
<textarea id="editor1" name="editor1"></textarea>
if (enter press in any where web page ) do save();
The important part is that the content in CKEditor is an iframe, so those solutions that try to check key presses on the current document will fail.
The solution is as simple as this using the CKEditor events and without relying on any external library:
You can test it here: http://jsfiddle.net/zjkSR/
(look at your console)