Javascript Ckeditor自定义插件不工作
我正在尝试实现中给出的时间戳示例插件,但是这个按钮没有显示在我的工具栏中,尽管我遵循了他们网站中给出的所有步骤,例如插件名称与文件夹名称相同,plugin.js和image的正确位置。我在config.js文件中添加了CKEditor.confi.extraplugins,并在config.js的工具栏中添加了名称。在jsp页面中,我的代码是Javascript Ckeditor自定义插件不工作,javascript,ckeditor,Javascript,Ckeditor,我正在尝试实现中给出的时间戳示例插件,但是这个按钮没有显示在我的工具栏中,尽管我遵循了他们网站中给出的所有步骤,例如插件名称与文件夹名称相同,plugin.js和image的正确位置。我在config.js文件中添加了CKEditor.confi.extraplugins,并在config.js的工具栏中添加了名称。在jsp页面中,我的代码是 <script language="JavaScript" src="/ckeditor/ckeditor_source.js"></s
<script language="JavaScript" src="/ckeditor/ckeditor_source.js"></script>
window.onload = function(){
CKEDITOR.replace( 'editor1',
{
fullPage : true,
extraPlugins :'docprops',
extraPlugins : 'timestamp',
toolbar : 'LISToobar'
});
};
window.onload=函数(){
CKEDITOR.replace('editor1',
{
整页:对,
外部插件:'docprops',
extraPlugins:“时间戳”,
工具栏:“列表工具栏”
});
};
但是一些时间戳按钮没有显示在我的工具栏上。请帮助我您不能定义两次外部插件,您必须添加以逗号分隔的插件:
<script type="text/javascript" src="/ckeditor/ckeditor_source.js"></script>
<script type="text/javascript">
window.onload = function(){
CKEDITOR.replace( 'editor1',
{
fullPage : true,
extraPlugins :'docprops,timestamp',
toolbar : 'LISToobar'
});
};
</script>
window.onload=函数(){
CKEDITOR.replace('editor1',
{
整页:对,
extraPlugins:'docprops,timestamp',
工具栏:“列表工具栏”
});
};