|
@@ -153,12 +153,8 @@ etpl.config({
|
|
|
'| justifyleft justifycenter justifyright justifyjustify |',
|
|
'| justifyleft justifycenter justifyright justifyjustify |',
|
|
|
'link unlink | emotion image video | map',
|
|
'link unlink | emotion image video | map',
|
|
|
'| horizontal print preview fullscreen', 'drafts', 'formula'
|
|
'| horizontal print preview fullscreen', 'drafts', 'formula'
|
|
|
- ],
|
|
|
|
|
- escape: false, // 关闭自动转义 ★核心
|
|
|
|
|
- allowDivTransToP: false,
|
|
|
|
|
- autoClearinitialContent: true,
|
|
|
|
|
- // 新增配置:禁用自动转换引号
|
|
|
|
|
- autoTransWord: false
|
|
|
|
|
|
|
+ ]
|
|
|
|
|
+
|
|
|
//语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件:
|
|
//语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件:
|
|
|
//lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
|
|
//lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
|
|
|
//,lang:"zh-cn"
|
|
//,lang:"zh-cn"
|
|
@@ -330,5 +326,4 @@ etpl.config({
|
|
|
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'style', 'class', 'id']
|
|
video: ['autoplay', 'controls', 'loop', 'preload', 'src', 'height', 'width', 'style', 'class', 'id']
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
- var um = UM.getEditor('myEditor');
|
|
|
|
|
})();
|
|
})();
|