CKeditor 3.0 - 如何知道单击了哪个工具栏按钮
当单击任何工具栏按钮(如粗体、斜体等)时,我想更新一些变量。我无法捕获这些按钮中的任何一个的“点击”事件。有人可以给我一个例子,当单击“粗体”按钮时也会弹出一个警报框吗?
如何捕获“粘贴”事件?
我用谷歌搜索了很多并搜索了 ckeditor 论坛,但找不到任何解决方案。任何指针都会非常有帮助。
谢谢。
I want to update few variables when any of the toolbar button (like bold, italic etc) is clicked. I'm unable to trap 'click' event on any of these buttons. Could somebody give me an example when clicking on 'bold' button would also pop up an alert box?
How can I trap 'paste' event?
I've googled a lot and searched ckeditor forum but couldn't find any solution. Any pointer would be really helpful.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了如何捕获粘贴事件:
但这似乎不适用于按钮操作:
解决方案可能是编辑 _source/plugins 中的插件来创建触发器,尽管这并不理想。
I found out how to catch the paste event:
However this doesn't seem to work for the button actions:
The solution may be to edit the plugins in _source/plugins to create triggers, though that is not ideal.