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