SRy*_*SRy 2 javascript ckeditor
我正在尝试实现www.ckeditor.com中给出的时间戳示例插件.但是这个按钮没有显示在我的工具栏中,即使我按照他们网站上给出的所有步骤,这些插件名称与文件夹名称相同,也就是plugin.js和image的正确位置.我在config.js中添加了CKEditor.confi.extraplugins在config.js.ad和jsp页面中的工具栏中添加了文件和名称,我的代码是
<script language="JavaScript" src="/ckeditor/ckeditor_source.js"></script>
window.onload = function(){
CKEDITOR.replace( 'editor1',
{
fullPage : true,
extraPlugins :'docprops',
extraPlugins : 'timestamp',
toolbar : 'LISToobar'
});
};
Run Code Online (Sandbox Code Playgroud)
但有些时间戳按钮没有显示在我的工具栏中.请帮助我
你不能两次定义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>
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2784 次 |
| 最近记录: |