我们如何打开图像属性窗口


ckeditor how can we open Image Properties window?

我使用CkEditor替换文本区域。我想在编辑器外打开自定义事件的图像属性窗口。JavaScript函数中的锚标记onclick。我使用了以下代码来列出编辑器实例

可用的事件列表
var editor = CKEDITOR.replace( element, { customConfig : 'ckeditor/config.js' }  );      
for(var i in CKEDITOR.instances)
{  
    console.log(CKEDITOR.instances[i]._.events); 
}

还尝试了这个代码打开对话框:

dialogObj = new CKEDITOR.dialog( CKEDITOR.instances[i], 'smiley' );
dialogObj.show();

谢谢

如果你的实例名为editor1,你可以这样调用smiley对话框:

CKEDITOR.instances.editor1.execCommand('smiley')