Hi everybody,
I have the following problem with FCKeditor 2.3 and 2.3.1:
I use FCKeditor in my upcoming CMS and need to link a JavaScript function with the OnKeyPress event.
I tried the following:
1)
Set the window.onkeypress via JavaScript.
Doesn't work cause document is in edit mode, I think.
2)
editorInstance.Events.AttachEvent('onkeypress', FCKeditor_AdjustHeight);
in "FCKeditor_OnComplete".
No effect in IE and FireFox.
3) FCK.EditorDocument.attachEvent("onkeydown", FCKeditor_AdjustHeight);
or
FCK.EditorDocument.addEventListener('keypress', FCKeditor_AdjustHeight, true);
No effect.
4)
Used the "denonkeydown" PlugIn.
Seems not to work with 2.3 and 2.3.1
Has anyone a solution for this problem?
I have the following problem with FCKeditor 2.3 and 2.3.1:
I use FCKeditor in my upcoming CMS and need to link a JavaScript function with the OnKeyPress event.
I tried the following:
1)
Set the window.onkeypress via JavaScript.
Doesn't work cause document is in edit mode, I think.
2)
editorInstance.Events.AttachEvent('onkeypress', FCKeditor_AdjustHeight);
in "FCKeditor_OnComplete".
No effect in IE and FireFox.
3) FCK.EditorDocument.attachEvent("onkeydown", FCKeditor_AdjustHeight);
or
FCK.EditorDocument.addEventListener('keypress', FCKeditor_AdjustHeight, true);
No effect.
4)
Used the "denonkeydown" PlugIn.
Seems not to work with 2.3 and 2.3.1
Has anyone a solution for this problem?