Hi,
We're working on an online chat application and would like to integrate with the editor so users can compose messages. Our application requires that when a user presses Enter we send out the message from the editor. Currently FCKEditor treats Enter to insert <br>. So my questions are:
1. Is it possible to change the logic so Enter would call some callback?
2. Is it possible to change the logic so Ctrl + Enter would do what Enter does today (insert <br>) ?
thanks,
Joe
We're working on an online chat application and would like to integrate with the editor so users can compose messages. Our application requires that when a user presses Enter we send out the message from the editor. Currently FCKEditor treats Enter to insert <br>. So my questions are:
1. Is it possible to change the logic so Enter would call some callback?
2. Is it possible to change the logic so Ctrl + Enter would do what Enter does today (insert <br>) ?
thanks,
Joe

RE: changing behavior for the Enter key
RE: changing behavior for the Enter key
RE: changing behavior for the Enter key
RE: changing behavior for the Enter key
RE: changing behavior for the Enter key
RE: changing behavior for the Enter key
http://whatis.techtarget.com/definition ... 16,00.html
RE: changing behavior for the Enter key
Error: handleEnterFunction is not defined
Source File: /fckeditor/editor/plugins/fckonkeydown/fckplugin.js
Line: 45
Any idea why my function cannot be resolved?
RE: changing behavior for the Enter key
Also, I left out two lines in the gecko intercepter that stop the onkeydown event from propagating.
That func should read like this:
if (e.which == 13 && !e.shiftKey && !e.ctrlKey && !e.altKey) {
e.preventDefault();
e.stopPropagation();
if (alreadyRun == false) {
FCKOnKeyDownFunction();
alreadyRun = true
}
return false;
}
I've cleaned up a version of this and renamed it to denonkeydown (in case of name conflicts somewhere down the road) which I will submit as a plugin and add to the wiki at some point in the near future.
MTFBWY!
Using Content Max length for FCK 2.6
I am getting trouble in implementing Content Max Length plugin with FCK 2.6
it says FCK.EditorDocument is undefined.
I have just added the line " FCKConfig.Plugins.Add( 'ContentMaxLength' ) ;" in fckconfig.js
other than this, should i do anything?.
and also i am using php class for creating FCK editor not in js.
Please help. its very urgent.
Thanks in Advance,
Jasan