如何在处于只读模式时启用 CKEDITOR 中的单个按钮
我为 CKEDITOR 创建了一个插件,它将打开一个弹出对话框。我希望即使当我的 CKEDITOR 处于只读模式时也能启用它。无论如何我可以做到吗?
我还想知道是否有任何方法可以在只读模式下禁用“源”按钮。
编辑器是禁用还是启用是动态确定的,我希望所有工具栏都存在,但处于禁用模式,因此我无法从工具栏中删除源按钮。
我在过去的三个小时里试图找到一种方法,但我无法找到它。而且很紧急。 :(
提前致谢。
I created a plugin for CKEDITOR which will open a popup dialog. And i want it to be enabled even when my CKEDITOR is in readOnly mode. Is there anyway i can do it?
Also i want to know is there any way to disable the Source button in the readOnly mode.
Whether the editor is disabled or enabled is determined dynamically and i want all the toolbars to be present but in the disabled mode, so i can't remove the source button from the toolbar.
I'm trying to find a way for last 3hours, and i can't get to it. And its urgent. :(
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这个愚蠢可怕的黑客可能会帮助你:)
This stupid horrible hack might help you :)
加载编辑器后使用类似的东西并添加/删除您想要和不想要的工具
Use something like this once the editor is loaded and add/remove the tools you want and don't want