[英]Split values like “20px”, “100%”, “4.58 em”, “-40px”, “.40em”, “-80”, “.04” into value / unit pairs
[英]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.