2012-01-11 64 views
0
CKEDITOR.dialog.add('quoteDialog',function(editor){ 
return{ //... ... code here 
    onShow:function(){ 
     var dialog = this; 
     var bg_box = dialog.getContentElement('general','color_box'); 
     $(bg_box)??? 
    } 
} 
}); 

好吧,我明白了!但是,我怎麼把它變成一個JQuery對象?如何獲取CKEditor UI元素並將其轉換爲JQuery對象?

回答

0

我找到了解決我的問題:

$(bg_box ._ inputId。)

+0

什麼是._。inputId在這裏?請讓我陷入同樣的​​問題。 – akg 2015-07-02 09:00:35

0

可以更改CKEditor的對象(或對象數組)JQuery的對象(或對象陣列)

參見例如代碼

CKEditor的對象列表: - var elmnts= CKEDITOR.instances.editor1.editable().find('img');

jQuery對象列表: - var elmnts= CKEDITOR.instances.editor1.editable().find('img').$;

相關問題