如何在CKEDITOR.dialog中调用jquery方法
在CKEDITOR对话框插件中有一种方法可以调用jquery函数。 基本上,我希望将文本元素转换为Jquery颜色选择器如何在CKEDITOR.dialog中调用jquery方法,jquery,color-picker,Jquery,Color Picker,在CKEDITOR对话框插件中有一种方法可以调用jquery函数。 基本上,我希望将文本元素转换为Jquery颜色选择器 CKEDITOR.dialog.add( 'testtyni', function( editor ) { return { title: 'Edit Simple Box', minWidth: 200, minHeight: 100, contents: [ {
CKEDITOR.dialog.add( 'testtyni', function( editor ) {
return {
title: 'Edit Simple Box',
minWidth: 200,
minHeight: 100,
contents: [
{
id: 'info',
elements: [
{
type: 'text',
id: 'color',
label: 'Background Color',
'default': '',
setup:function(widget){
//$ Is Undefined
$(this).colorPicker();
}
}
]
}
]
};
} );
问题是没有定义$
我想调用colorPicker方法也会遇到问题
请帮助。您确定要先加载jQuery吗?有关更多信息,请参见此问题