0
我不知道這是一個有效的問題。大多數的插件和對話定義CKEditor的例子是使用變量「編輯」,我想知道它是什麼,並從那裏它的價值都來了。CKEDITOR:「CKEDITOR.plugins.add('...,{init:function(editor)..」在這裏是什麼是「編輯器」。?
例如
CKEDITOR.plugins.add('sample',
{
init : function(editor)
{
alert('Editor "' + editor.name + '" is being initialized!');
}
});
在這示例行init : function(editor)
有一個「編輯器」,我想知道它是什麼,它具有所有功能,如上面的示例editor.name
。這些變量如何具有assi gned所有這些值。
感謝您的回覆。我如何獲得該實例或將其分配給來自init函數外部的其他變量。 – Ramesh
請參閱[API文檔](http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.html)中的「CKEDITOR.currentInstance」或「CKEDITOR.instances」 –