在fckeditor中按下按键时触发javascript函数
当在 FCKeditor 2 文本区域中输入内容时,我需要触发自定义 JavaScript 函数。然而,我进行了广泛的搜索,但找不到答案。想要以某种方式将 onkeypress="customfunction()" 添加到文本区域之类的事情。
感谢您的帮助!
I need to trigger a custom javascript function when something is typed into FCKeditor 2 textarea. However, I have searched far and wide and can't find an answer to this. Would like to do something like add onkeypress="customfunction()" to the textarea somehow.
Thanks for any help!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
最终通过一些文字暗示找到了一些东西。以下是如何在 FCKeditor 2.0 上执行 onkeypress 操作。您需要在调用编辑器代码后加载此 JavaScript:
managed to find something in the end using some hints of words. Here is how to do an onkeypress even on FCKeditor 2.0. You need to load this javascript AFTER the editor code is called:
这似乎有效:
在这里找到:http://cksource.com/forums/viewtopic.php ?t=18286
This seems to work:
Found here: http://cksource.com/forums/viewtopic.php?t=18286