Php ckeditor如何打开“图像属性”窗口?

Php ckeditor如何打开“图像属性”窗口?,php,ckeditor,Php,Ckeditor,我正在使用CkEditor替换文本区域。 我想在编辑器外部打开自定义事件的“图像属性”窗口。JavaScript函数中的锚定标记onclick。我使用以下代码列出了编辑器实例中可用的事件 var editor = CKEDITOR.replace( element, { customConfig : 'ckeditor/config.js' } ); for(var i in CKEDITOR.instances) { console.log(CKEDITOR.ins

我正在使用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')