1 line
16 KiB
JavaScript
1 line
16 KiB
JavaScript
|
"use strict";(self.webpackChunkamis_rpc_design=self.webpackChunkamis_rpc_design||[]).push([[6071],{66071:(e,t,o)=>{o.r(t),o.d(t,{default:()=>l});var i=o(14320),n=o(90375),r=o(98495),a=o.n(r),l=(o(98981),o(85590),o(11260),o(85773),o(39323),o(36618),o(18327),o(80450),o(55552),o(90154),o(74368),o(50496),o(96450),o(61495),o(95942),o(67074),o(65500),o(5099),o(2078),o(82419),o(51230),o(88504),o(71725),o(28120),o(91414),o(79671),o(41820),o(20523),o(70081),o(96480),o(56398),function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.unmounted=!1,t.editorInitialized=!1,t.elementRef=n.Z.createRef(),t}return(0,i.ZT)(t,e),t.prototype.componentDidMount=function(){return(0,i.mG)(this,void 0,void 0,(function(){var e,t,o,n,r=this;return(0,i.Jh)(this,(function(l){switch(l.label){case 0:return e=this.props.locale,t=this.props.config||{},o=t.onLoaded,n=(0,i._T)(t,["onLoaded"]),this.config=(0,i.pi)((0,i.pi)({inline:!1,skin:!1,content_css:!1,height:400,language:e&&"zh-CN"!==e?"en":"zh_CN",branding:!1,plugins:["advlist","autolink","autoresize","link","image","lists","charmap","preview","anchor","pagebreak","searchreplace","wordcount","visualblocks","visualchars","code","fullscreen","insertdatetime","media","nonbreaking","table","emoticons","template","help","quickbars"],toolbar:"undo redo | blocks | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | preview media | fontfamily fontsize forecolor backcolor emoticons | print help",quickbars_selection_toolbar:"bold italic | link h2 h3 blockquote",quickbars_insert_toolbar:"quickimage quicktable",menu:{file:{title:"File",items:"newdocument restoredraft | preview | print "},edit:{title:"Edit",items:"undo redo | cut copy paste | selectall | searchreplace"},view:{title:"View",items:"code | visualaid visualchars visualblocks | preview fullscreen"},insert:{title:"Insert",items:"image link media template codesample inserttable | charmap emoticons hr | pagebreak nonbreaking anchor toc | insertdatetime"},format:{title:"Format",items:"bold italic underline strikethrough superscript subscript codeformat | styles blocks fontsize align | forecolor backcolor | removeformat"},tools:{title:"Tools",items:"code wordcount"},table:{title:"Table",items:"inserttable | cell row column | tableprops deletetable"},help:{title:"Help",items:"help"}},paste_data_images:!0,content_style:"[data-mce-bogus] video {display:none;}"},n),{target:this.elementRef.current,readOnly:this.props.disabled,promotion:!1,setup:function(e){r.editor=e,e.on("init",(function(t){r.editorInitialized=!0,r.initEditor(t,e)}))}}),[4,null==o?void 0:o(a())];case 1:return l.sent(),this.unmounted||a().init(this.config),[2]}}))}))},t.prototype.componentDidUpdate=function(e){var t,o=this.props;o.model!==e.model&&o.model!==this.currentContent&&this.editorInitialized&&(null===(t=this.editor)||void 0===t||t.setContent(o.model||""))},t.prototype.componentWillUnmount=function(){a().remove(this.editor),this.unmounted=!0},t.prototype.initEditor=function(e,t){var o=this,i=this.props,n=i.model,r=i.onModelChange,a=i.outputFormat,l=i.onFocus,s=i.onBlur,c=n||"";t.setContent(c),r&&t.on("change keyup setcontent",(function(e){var i=t.getContent({format:a});i!==o.currentContent&&(o.currentContent=i,r(i))})),l&&t.on("focus",l),s&&t.on("blur",s)},t.prototype.render=function(){return n.Z.createElement("textarea",{ref:this.elementRef})},t.defaultProps={outputFormat:"html"},t}(n.Z.Component));a().addI18n("zh_CN",{Redo:"重做",Undo:"撤销",Cut:"剪切",Copy:"复制",Paste:"粘贴","Select all":"全选","New document":"新文件",Ok:"确定",Cancel:"取消","Visual aids":"网格线",Bold:"粗体",Italic:"斜体",Underline:"下划线",Strikethrough:"删除线",Superscript:"上标",Subscript:"下标","Clear formatting":"清除格式","Align left":"左边对齐","Align center":"中间对齐","Align right":"右边对齐",Justify:"两端对齐","Bullet list":"项目符号","Numbered list":"编号列表","Decrease indent":"减少缩进","Increase indent":"增加缩进",Close:"关闭",Formats:"格式","Your brow
|