我无法在 ckeditor 工具栏的样式部分中呈现上标、下标和下划线按钮
I can't get superscript, subscript and underline buttons to render in the styles part of the toolbar in the ckeditor
我是一家小型出版物的网站管理员,该出版物使用我们后端系统上的 ckeditor 来处理 post 格式设置。到目前为止效果很好。我们使用查看源代码选项手动向内容添加一些 html 标签。它起作用了,但后来我注意到,一旦我重新打开后端的 post 并单击源代码,它就会对标签进行条带化。在找出原因的过程中,我发现编辑器基本上会条带化不属于的代码。我开始挖掘并找到位于我的安装中的 config.js 文件。那是我在配置中发现 config.removeButtons
选项的时候。我注意到它专门删除了我需要的选项...下划线、下标、上标。有什么我想念的吗?它看起来应该包含在标准工具栏中。
我尝试删除它并保存文件并重新加载正在使用该编辑器的网页,但没有任何反应。
这是我config.js
中的数据
CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';
// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
config.extraPlugins = 'gwuploadmanager';
config.height = 500;
};
在此先感谢您的帮助!!!
谢谢格雷格!当然它被缓存了。我不确定它具体保存在哪个缓存中,因为我删除了 cakephp 中 tmp/models 中的故事缓存并清除了浏览器缓存。但它奏效了!!
我是一家小型出版物的网站管理员,该出版物使用我们后端系统上的 ckeditor 来处理 post 格式设置。到目前为止效果很好。我们使用查看源代码选项手动向内容添加一些 html 标签。它起作用了,但后来我注意到,一旦我重新打开后端的 post 并单击源代码,它就会对标签进行条带化。在找出原因的过程中,我发现编辑器基本上会条带化不属于的代码。我开始挖掘并找到位于我的安装中的 config.js 文件。那是我在配置中发现 config.removeButtons
选项的时候。我注意到它专门删除了我需要的选项...下划线、下标、上标。有什么我想念的吗?它看起来应该包含在标准工具栏中。
我尝试删除它并保存文件并重新加载正在使用该编辑器的网页,但没有任何反应。
这是我config.js
中的数据CKEDITOR.editorConfig = function( config ) {
// Define changes to default configuration here.
// For complete reference see:
// http://docs.ckeditor.com/#!/api/CKEDITOR.config
// The toolbar groups arrangement, optimized for two toolbar rows.
config.toolbarGroups = [
{ name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
{ name: 'editing', groups: [ 'find', 'selection', 'spellchecker' ] },
{ name: 'links' },
{ name: 'insert' },
{ name: 'forms' },
{ name: 'tools' },
{ name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
{ name: 'others' },
'/',
{ name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
{ name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi' ] },
{ name: 'styles' },
{ name: 'colors' },
{ name: 'about' }
];
// Remove some buttons provided by the standard plugins, which are
// not needed in the Standard(s) toolbar.
config.removeButtons = 'Underline,Subscript,Superscript';
// Set the most common block elements.
config.format_tags = 'p;h1;h2;h3;pre';
// Simplify the dialog windows.
config.removeDialogTabs = 'image:advanced;link:advanced';
config.extraPlugins = 'gwuploadmanager';
config.height = 500;
};
在此先感谢您的帮助!!!
谢谢格雷格!当然它被缓存了。我不确定它具体保存在哪个缓存中,因为我删除了 cakephp 中 tmp/models 中的故事缓存并清除了浏览器缓存。但它奏效了!!