如何在CKEditor中更改已注册的对话框 [英] How to change an already registered dialog in CKEditor
问题描述
我正在尝试编写一个插件,在图像对话框中添加一个附加标签(页面)。我不想更改对话框的源代码本身,但使用插件增强它。
I'm trying to write a plugin, that adds an additional tab (page) to the image dialog. I don't want to change the dialog's source itself, but enhance it with the plugin.
我搜索文档和论坛了一段时间,现在,我现在知道我可以调用addPage对话框对象添加另一个选项卡。我也理解内容对象必须是什么样子。
但我没有找到如何获得已经存在的对话框的对话框对象的方式。
I searched the docs and the forum for quite some time now, and I now know that I can call "addPage" on the dialogs object to add another tab. I also understand how the contents object must look like. But I failed in finding the way how to get the dialog object of an already existing dialog.
我尝试了一个
var ImageDialog = new CKEDITOR.dialog( editor, 'image' );
在插件的init方法中,但是导致一个JS错误R不是一个函数。
within the plugin's init method, but that caused an JS error "R is not a function"...
有人可以在这里帮我吗?
Can somebody help me out here, please?
/ p>
Thanks in advance, Marc
推荐答案
您可以在API对话框示例
这篇关于如何在CKEditor中更改已注册的对话框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!