ueditor.config.js 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499
  1. /**
  2. * ueditor完整配置项
  3. * 可以在这里配置整个编辑器的特性
  4. */
  5. /**************************提示********************************
  6. * 所有被注释的配置项均为UEditor默认值。
  7. * 修改默认配置请首先确保已经完全明确该参数的真实用途。
  8. * 主要有两种修改方案,一种是取消此处注释,然后修改成对应参数;另一种是在实例化编辑器时传入对应参数。
  9. * 当升级编辑器时,可直接使用旧版配置文件替换新版配置文件,不用担心旧版配置文件中因缺少新功能所需的参数而导致脚本报错。
  10. **************************提示********************************/
  11. window.UEDITOR_HOME_URL = config.lib + 'editor/';
  12. (function () {
  13. /**
  14. * 编辑器资源文件根路径。它所表示的含义是:以编辑器实例化页面为当前路径,指向编辑器资源文件(即dialog等文件夹)的路径。
  15. * 鉴于很多同学在使用编辑器的时候出现的种种路径问题,此处强烈建议大家使用"相对于网站根目录的相对路径"进行配置。
  16. * "相对于网站根目录的相对路径"也就是以斜杠开头的形如"/myProject/ueditor/"这样的路径。
  17. * 如果站点中有多个不在同一层级的页面需要实例化编辑器,且引用了同一UEditor的时候,此处的URL可能不适用于每个页面的编辑器。
  18. * 因此,UEditor提供了针对不同页面的编辑器可单独配置的根路径,具体来说,在需要实例化编辑器的页面最顶部写上如下代码即可。当然,需要令此处的URL等于对应的配置。
  19. * window.UEDITOR_HOME_URL = "/xxxx/xxxx/";
  20. */
  21. var URL = window.UEDITOR_HOME_URL || (function(){
  22. function PathStack() {
  23. this.documentURL = self.document.URL || self.location.href;
  24. this.separator = '/';
  25. this.separatorPattern = /\\|\//g;
  26. this.currentDir = './';
  27. this.currentDirPattern = /^[.]\/]/;
  28. this.path = this.documentURL;
  29. this.stack = [];
  30. this.push( this.documentURL );
  31. }
  32. PathStack.isParentPath = function( path ){
  33. return path === '..';
  34. };
  35. PathStack.hasProtocol = function( path ){
  36. return !!PathStack.getProtocol( path );
  37. };
  38. PathStack.getProtocol = function( path ){
  39. var protocol = /^[^:]*:\/*/.exec( path );
  40. return protocol ? protocol[0] : null;
  41. };
  42. PathStack.prototype = {
  43. push: function( path ){
  44. this.path = path;
  45. update.call( this );
  46. parse.call( this );
  47. return this;
  48. },
  49. getPath: function(){
  50. return this + "";
  51. },
  52. toString: function(){
  53. return this.protocol + ( this.stack.concat( [''] ) ).join( this.separator );
  54. }
  55. };
  56. function update() {
  57. var protocol = PathStack.getProtocol( this.path || '' );
  58. if( protocol ) {
  59. //根协议
  60. this.protocol = protocol;
  61. //local
  62. this.localSeparator = /\\|\//.exec( this.path.replace( protocol, '' ) )[0];
  63. this.stack = [];
  64. } else {
  65. protocol = /\\|\//.exec( this.path );
  66. protocol && (this.localSeparator = protocol[0]);
  67. }
  68. }
  69. function parse(){
  70. var parsedStack = this.path.replace( this.currentDirPattern, '' );
  71. if( PathStack.hasProtocol( this.path ) ) {
  72. parsedStack = parsedStack.replace( this.protocol , '');
  73. }
  74. parsedStack = parsedStack.split( this.localSeparator );
  75. parsedStack.length = parsedStack.length - 1;
  76. for(var i= 0,tempPath,l=parsedStack.length,root = this.stack;i<l;i++){
  77. tempPath = parsedStack[i];
  78. if(tempPath){
  79. if( PathStack.isParentPath( tempPath ) ) {
  80. root.pop();
  81. } else {
  82. root.push( tempPath );
  83. }
  84. }
  85. }
  86. }
  87. var currentPath = document.getElementsByTagName('script');
  88. currentPath = currentPath[ currentPath.length -1 ].src;
  89. return new PathStack().push( currentPath ) + "";
  90. })();
  91. /**
  92. * 配置项主体。注意,此处所有涉及到路径的配置别遗漏URL变量。
  93. */
  94. window.UEDITOR_CONFIG = {
  95. //为编辑器实例添加一个路径,这个不能被注释
  96. UEDITOR_HOME_URL : URL
  97. //图片上传配置区
  98. ,imageUrl: config.upload + '.ueditor' //图片上传提交地址
  99. ,imagePath:'' //图片修正地址,引用了fixedImagePath,如有特殊需求,可自行配置
  100. ,imageFieldName:"Filedata" //图片数据的key,若此处修改,需要在后台对应文件修改对应参数
  101. //,compressSide:0 //等比压缩的基准,确定maxImageSideLength参数的参照对象。0为按照最长边,1为按照宽度,2为按照高度
  102. ,maxImageSideLength:10000 //上传图片最大允许的边长,超过会自动等比缩放,不缩放就设置一个比较大的值,更多设置在image.html中
  103. //涂鸦图片配置区
  104. ,scrawlUrl:URL+"php/scrawlUp.php" //涂鸦上传地址
  105. ,scrawlPath:URL+"php/" //图片修正地址,同imagePath
  106. //附件上传配置区
  107. ,fileUrl:URL+"php/fileUp.php" //附件上传提交地址
  108. ,filePath:URL + "php/" //附件修正地址,同imagePath
  109. //,fileFieldName:"upfile" //附件提交的表单名,若此处修改,需要在后台对应文件修改对应参数
  110. //远程抓取配置区
  111. ,catchRemoteImageEnable:false //是否开启远程图片抓取,默认开启
  112. //,catcherUrl:URL +"php/getRemoteImage.php" //处理远程图片抓取的地址
  113. //,catcherPath:URL + "php/" //图片修正地址,同imagePath
  114. //,catchFieldName:"upfile" //提交到后台远程图片uri合集,若此处修改,需要在后台对应文件修改对应参数
  115. //,separater:'ue_separate_ue' //提交至后台的远程图片地址字符串分隔符
  116. //,localDomain:[] //本地顶级域名,当开启远程图片抓取时,除此之外的所有其它域名下的图片都将被抓取到本地,默认不抓取127.0.0.1和localhost
  117. //图片在线管理配置区
  118. ,imageManagerUrl:URL + "php/imageManager.php" //图片在线管理的处理地址
  119. ,imageManagerPath:URL + "php/" //图片修正地址,同imagePath
  120. //屏幕截图配置区
  121. ,snapscreenHost: location.hostname //屏幕截图的server端文件所在的网站地址或者ip,请不要加http://
  122. ,snapscreenServerUrl: URL +"php/imageUp.php" //屏幕截图的server端保存程序,UEditor的范例代码为“URL +"server/upload/php/snapImgUp.php"”
  123. ,snapscreenPath: URL + "php/"
  124. ,snapscreenServerPort: location.port //屏幕截图的server端端口
  125. //,snapscreenImgAlign: '' //截图的图片默认的排版方式
  126. //word转存配置区
  127. ,wordImageUrl:URL + "php/imageUp.php" //word转存提交地址
  128. ,wordImagePath:URL + "php/" //
  129. //,wordImageFieldName:"upfile" //word转存表单名若此处修改,需要在后台对应文件修改对应参数
  130. //获取视频数据的地址
  131. ,getMovieUrl:URL+"php/getMovie.php" //视频数据获取地址
  132. /*
  133. //工具栏上的所有的功能按钮和下拉框,可以在new编辑器的实例时选择自己需要的从新定义
  134. , toolbars:[
  135. ['undo', 'redo', '|', 'link', 'fontborder', 'bold', 'strikethrough', 'insertimage','source','removeformat','fullscreen']
  136. ]
  137. , toolbars:[
  138. ['fullscreen', 'source', '|', 'undo', 'redo', '|',
  139. 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|',
  140. 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|',
  141. 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
  142. 'directionalityltr', 'directionalityrtl', 'indent', '|',
  143. 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|',
  144. 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|',
  145. 'insertimage', 'emotion', 'scrawl', 'insertvideo', 'music', 'attachment', 'map', 'gmap', 'insertframe','insertcode', 'webapp', 'pagebreak', 'template', 'background', '|',
  146. 'horizontal', 'date', 'time', 'spechars', 'snapscreen', 'wordimage', '|',
  147. 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|',
  148. 'print', 'preview', 'searchreplace', 'help']
  149. ]
  150. */
  151. , toolbars:[
  152. ['fullscreen', 'source','undo', 'redo',
  153. 'bold', 'italic', 'underline','formatmatch','|', 'forecolor', 'backcolor',
  154. 'lineheight', '|',
  155. 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|',
  156. 'indent', '|',
  157. 'justifyleft', 'justifycenter', 'justifyright','|',
  158. 'link', 'unlink', 'anchor', '|',
  159. 'insertimage', 'insertvideo','insertframe','insertcode','pagebreak','|',
  160. 'horizontal',
  161. 'searchreplace', 'help']
  162. ]
  163. //当鼠标放在工具栏上时显示的tooltip提示,留空支持自动多语言配置,否则以配置值为准
  164. // ,labelMap:{
  165. // 'anchor':'', 'undo':''
  166. // }
  167. //webAppKey
  168. //百度应用的APIkey,每个站长必须首先去百度官网注册一个key后方能正常使用app功能
  169. //,webAppKey:""
  170. //语言配置项,默认是zh-cn。有需要的话也可以使用如下这样的方式来自动多语言切换,当然,前提条件是lang文件夹下存在对应的语言文件:
  171. //lang值也可以通过自动获取 (navigator.language||navigator.browserLanguage ||navigator.userLanguage).toLowerCase()
  172. //,lang:"zh-cn"
  173. //,langPath:URL +"lang/"
  174. //主题配置项,默认是default。有需要的话也可以使用如下这样的方式来自动多主题切换,当然,前提条件是themes文件夹下存在对应的主题文件:
  175. //现有如下皮肤:default
  176. //,theme:'default'
  177. //,themePath:URL +"themes/"
  178. //若实例化编辑器的页面手动修改的domain,此处需要设置为true
  179. //,customDomain:false
  180. //针对getAllHtml方法,会在对应的head标签中增加该编码设置。
  181. //,charset:"utf-8"
  182. //常用配置项目
  183. //,isShow : true //默认显示编辑器
  184. //,initialContent:'欢迎使用ueditor!' //初始化编辑器的内容,也可以通过textarea/script给值,看官网例子
  185. //,initialFrameWidth:'100%' //初始化编辑器宽度,默认1000
  186. ,initialFrameHeight:320 //初始化编辑器高度,默认320
  187. //,autoClearinitialContent:true //是否自动清除编辑器初始内容,注意:如果focus属性设置为true,这个也为真,那么编辑器一上来就会触发导致初始化的内容看不到了
  188. //,iframeCssUrl: URL + '/themes/iframe.css' //给编辑器内部引入一个css文件
  189. //,textarea:'editorValue' // 提交表单时,服务器获取编辑器提交内容的所用的参数,多实例时可以给容器name属性,会将name给定的值最为每个实例的键值,不用每次实例化的时候都设置这个值
  190. //,focus:false //初始化时,是否让编辑器获得焦点true或false
  191. //,autoClearEmptyNode : true //getContent时,是否删除空的inlineElement节点(包括嵌套的情况)
  192. //,fullscreen : false //是否开启初始化时即全屏,默认关闭
  193. //,readonly : false //编辑器初始化结束后,编辑区域是否是只读的,默认是false
  194. //,zIndex : 900 //编辑器层级的基数,默认是900
  195. //,imagePopup:true //图片操作的浮层开关,默认打开
  196. //如果自定义,最好给p标签如下的行高,要不输入中文时,会有跳动感
  197. //,initialStyle:'p{line-height:1em}'//可以用来改变字体等
  198. ,initialStyle:'p{}'
  199. //,autoSyncData:true //自动同步编辑器要提交的数据
  200. //,emotionLocalization:false //是否开启表情本地化,默认关闭。若要开启请确保emotion文件夹下包含官网提供的images表情文件夹
  201. ,pasteplain:false //是否默认为纯文本粘贴。false为不使用纯文本粘贴,true为使用纯文本粘贴
  202. //纯文本粘贴模式下的过滤规则
  203. // 'filterTxtRules' : function(){
  204. // function transP(node){
  205. // node.tagName = 'p';
  206. // node.setStyle();
  207. // }
  208. // return {
  209. // //直接删除及其字节点内容
  210. // '-' : 'script style object iframe embed input select',
  211. // 'p': {$:{}},
  212. // 'br':{$:{}},
  213. // 'div':{'$':{}},
  214. // 'li':{'$':{}},
  215. // 'caption':transP,
  216. // 'th':transP,
  217. // 'tr':transP,
  218. // 'h1':transP,'h2':transP,'h3':transP,'h4':transP,'h5':transP,'h6':transP,
  219. // 'td':function(node){
  220. // //没有内容的td直接删掉
  221. // var txt = !!node.innerText();
  222. // if(txt){
  223. // node.parentNode.insertAfter(UE.uNode.createText(' &nbsp; &nbsp;'),node);
  224. // }
  225. // node.parentNode.removeChild(node,node.innerText())
  226. // }
  227. // }
  228. // }()
  229. //,allHtmlEnabled:false //提交到后台的数据是否包含整个html字符串
  230. //iframeUrlMap
  231. //dialog内容的路径 ~会被替换成URL,垓属性一旦打开,将覆盖所有的dialog的默认路径
  232. //,iframeUrlMap:{
  233. // 'anchor':'~/dialogs/anchor/anchor.html',
  234. // }
  235. //insertorderedlist
  236. //有序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
  237. // ,'insertorderedlist':{
  238. // //自定的样式
  239. // 'num':'1,2,3...',
  240. // 'num1':'1),2),3)...',
  241. // 'num2':'(1),(2),(3)...',
  242. // 'cn':'一,二,三....',
  243. // 'cn1':'一),二),三)....',
  244. // 'cn2':'(一),(二),(三)....',
  245. // //系统自带
  246. // 'decimal' : '' , //'1,2,3...'
  247. // 'lower-alpha' : '' , // 'a,b,c...'
  248. // 'lower-roman' : '' , //'i,ii,iii...'
  249. // 'upper-alpha' : '' , lang //'A,B,C'
  250. // 'upper-roman' : '' //'I,II,III...'
  251. // }
  252. //insertunorderedlist
  253. //无序列表的下拉配置,值留空时支持多语言自动识别,若配置值,则以此值为准
  254. //,insertunorderedlist : {
  255. // //自定的样式
  256. // 'dash' :'— 破折号',
  257. // 'dot':' 。 小圆圈'
  258. // //系统自带
  259. // 'circle' : '', // '○ 小圆圈'
  260. // 'disc' : '', // '● 小圆点'
  261. // 'square' : '' //'■ 小方块'
  262. //}
  263. // ,listDefaultPaddingLeft : '30'//默认的左边缩进的基数倍
  264. // ,listiconpath : 'http://bs.baidu.com/listicon/'//自定义标号的路径
  265. // ,maxListLevel : 3 //限制可以tab的级数-1不限制
  266. //fontfamily
  267. //字体设置 label留空支持多语言自动切换,若配置,则以配置值为准
  268. // ,'fontfamily':[
  269. // { label:'',name:'songti',val:'宋体,SimSun'},
  270. // { label:'',name:'kaiti',val:'楷体,楷体_GB2312, SimKai'},
  271. // { label:'',name:'yahei',val:'微软雅黑,Microsoft YaHei'},
  272. // { label:'',name:'heiti',val:'黑体, SimHei'},
  273. // { label:'',name:'lishu',val:'隶书, SimLi'},
  274. // { label:'',name:'andaleMono',val:'andale mono'},
  275. // { label:'',name:'arial',val:'arial, helvetica,sans-serif'},
  276. // { label:'',name:'arialBlack',val:'arial black,avant garde'},
  277. // { label:'',name:'comicSansMs',val:'comic sans ms'},
  278. // { label:'',name:'impact',val:'impact,chicago'},
  279. // { label:'',name:'timesNewRoman',val:'times new roman'}
  280. // ]
  281. //fontsize
  282. //字号
  283. //,'fontsize':[10, 11, 12, 14, 16, 18, 20, 24, 36]
  284. //paragraph
  285. //段落格式 值留空时支持多语言自动识别,若配置,则以配置值为准
  286. //,'paragraph':{'p':'', 'h1':'', 'h2':'', 'h3':'', 'h4':'', 'h5':'', 'h6':''}
  287. //rowspacingtop
  288. //段间距 值和显示的名字相同
  289. //,'rowspacingtop':['5', '10', '15', '20', '25']
  290. //rowspacingBottom
  291. //段间距 值和显示的名字相同
  292. //,'rowspacingbottom':['5', '10', '15', '20', '25']
  293. //lineheight
  294. //行内间距 值和显示的名字相同
  295. //,'lineheight':['1', '1.5','1.75','2', '3', '4', '5']
  296. //customstyle
  297. //自定义样式,不支持国际化,此处配置值即可最后显示值
  298. //block的元素是依据设置段落的逻辑设置的,inline的元素依据BIU的逻辑设置
  299. //尽量使用一些常用的标签
  300. //参数说明
  301. //tag 使用的标签名字
  302. //label 显示的名字也是用来标识不同类型的标识符,注意这个值每个要不同,
  303. //style 添加的样式
  304. //每一个对象就是一个自定义的样式
  305. //,'customstyle':[
  306. // {tag:'h1', name:'tc', label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;text-align:center;margin:0 0 20px 0;'},
  307. // {tag:'h1', name:'tl',label:'', style:'border-bottom:#ccc 2px solid;padding:0 4px 0 0;margin:0 0 10px 0;'},
  308. // {tag:'span',name:'im', label:'', style:'font-style:italic;font-weight:bold'},
  309. // {tag:'span',name:'hi', label:'', style:'font-style:italic;font-weight:bold;color:rgb(51, 153, 204)'}
  310. // ]
  311. //右键菜单的内容,可以参考plugins/contextmenu.js里边的默认菜单的例子,label留空支持国际化,否则以此配置为准
  312. // ,contextMenu:[
  313. // {
  314. // label:'', //显示的名称
  315. // cmdName:'selectall',//执行的command命令,当点击这个右键菜单时
  316. // //exec可选,有了exec就会在点击时执行这个function,优先级高于cmdName
  317. // exec:function () {
  318. // //this是当前编辑器的实例
  319. // //this.ui._dialogs['inserttableDialog'].open();
  320. // }
  321. // }
  322. // ]
  323. //快捷菜单
  324. //,shortcutMenu:["fontfamily", "fontsize", "bold", "italic", "underline", "forecolor", "backcolor", "insertorderedlist", "insertunorderedlist"]
  325. //
  326. //wordCount
  327. //,wordCount:true //是否开启字数统计
  328. //,maximumWords:false //允许的最大字符数
  329. //字数统计提示,{#count}代表当前字数,{#leave}代表还可以输入多少字符数,留空支持多语言自动切换,否则按此配置显示
  330. //,wordCountMsg:'' //当前已输入 {#count} 个字符,您还可以输入{#leave} 个字符
  331. //超出字数限制提示 留空支持多语言自动切换,否则按此配置显示
  332. //,wordOverFlowMsg:'' //<span style="color:red;">你输入的字符个数已经超出最大允许值,服务器可能会拒绝保存!</span>
  333. //highlightcode
  334. // 代码高亮时需要加载的第三方插件的路径
  335. // ,highlightJsUrl:URL + "third-party/SyntaxHighlighter/shCore.js"
  336. // ,highlightCssUrl:URL + "third-party/SyntaxHighlighter/shCoreDefault.css"
  337. //tab
  338. //点击tab键时移动的距离,tabSize倍数,tabNode什么字符做为单位
  339. //,tabSize:4
  340. //,tabNode:'&nbsp;'
  341. //elementPathEnabled
  342. //是否启用元素路径,默认是显示
  343. ,elementPathEnabled : true
  344. ,allowDivTransToP:false
  345. //removeFormat
  346. //清除格式时可以删除的标签和属性
  347. //removeForamtTags标签
  348. //,removeFormatTags:'b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var'
  349. //removeFormatAttributes属性
  350. //,removeFormatAttributes:'class,style,lang,width,height,align,hspace,valign'
  351. //undo
  352. //可以最多回退的次数,默认20
  353. //,maxUndoCount:20
  354. //当输入的字符数超过该值时,保存一次现场
  355. //,maxInputCount:1
  356. //autoHeightEnabled
  357. // 是否自动长高,默认true
  358. //,autoHeightEnabled:true
  359. //scaleEnabled
  360. //是否可以拉伸长高,默认true(当开启时,自动长高失效)
  361. ,scaleEnabled:true
  362. //,minFrameWidth:800 //编辑器拖动时最小宽度,默认800
  363. //,minFrameHeight:220 //编辑器拖动时最小高度,默认220
  364. //autoFloatEnabled
  365. //是否保持toolbar的位置不动,默认true
  366. ,autoFloatEnabled:false
  367. //浮动时工具栏距离浏览器顶部的高度,用于某些具有固定头部的页面
  368. //,topOffset:30
  369. //编辑器底部距离工具栏高度(如果参数大于等于编辑器高度,则设置无效)
  370. //,toolbarTopOffset:400
  371. //indentValue
  372. //首行缩进距离,默认是2em
  373. //,indentValue:'2em'
  374. //pageBreakTag
  375. //分页标识符,默认是_ueditor_page_break_tag_
  376. //,pageBreakTag:'_ueditor_page_break_tag_'
  377. //sourceEditor
  378. //源码的查看方式,codemirror 是代码高亮,textarea是文本框,默认是codemirror
  379. //注意默认codemirror只能在ie8+和非ie中使用
  380. //,sourceEditor:"codemirror"
  381. //如果sourceEditor是codemirror,还用配置一下两个参数
  382. //codeMirrorJsUrl js加载的路径,默认是 URL + "third-party/codemirror/codemirror.js"
  383. //,codeMirrorJsUrl:URL + "third-party/codemirror/codemirror.js"
  384. //codeMirrorCssUrl css加载的路径,默认是 URL + "third-party/codemirror/codemirror.css"
  385. //,codeMirrorCssUrl:URL + "third-party/codemirror/codemirror.css"
  386. //编辑器初始化完成后是否进入源码模式,默认为否。
  387. //,sourceEditorFirst:false
  388. //autotypeset
  389. // //自动排版参数
  390. // ,autotypeset:{
  391. // mergeEmptyline : true, //合并空行
  392. // removeClass : true, //去掉冗余的class
  393. // removeEmptyline : false, //去掉空行
  394. // textAlign : "left" , //段落的排版方式,可以是 left,right,center,justify 去掉这个属性表示不执行排版
  395. // imageBlockLine : 'center', //图片的浮动方式,独占一行剧中,左右浮动,默认: center,left,right,none 去掉这个属性表示不执行排版
  396. // pasteFilter : false, //根据规则过滤没事粘贴进来的内容
  397. // clearFontSize : false, //去掉所有的内嵌字号,使用编辑器默认的字号
  398. // clearFontFamily : false, //去掉所有的内嵌字体,使用编辑器默认的字体
  399. // removeEmptyNode : false , // 去掉空节点
  400. // //可以去掉的标签
  401. // removeTagNames : {标签名字:1},
  402. // indent : false, // 行首缩进
  403. // indentValue : '2em' //行首缩进的大小
  404. // },
  405. //填写过滤规则
  406. //filterRules : {}
  407. };
  408. })();