繁体   English   中英

在CKEditor中,如何将“缩进”插件更改为20px而不是40px?

[英]In CKEditor, how do I change the “indent” plugin to 20px instead of 40px?

当我在CKEDITOR上按下“缩进”时,它会创建一个带有margin-left 40的div。

如何将该数字更改为20?

请尝试以下方法:

http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.config.html#.indentOffset

以下是适用的摘录:

var indentOffset = editor.config.indentOffset || 40;

您也可以直接在编辑器中设置配置文件

在config.js中

 CKEDITOR.editorConfig = function(config) { config.indentOffset = 20; }; 

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM