System.register(["./pinia-legacy.js","./vue-legacy.js"],(function(s){"use strict";var a;return{setters:[function(){},function(s){a=s.M}],execute:function(){var n={methods:{source:function(){return'
{}"><html>\n<head>\n <meta charset="UTF-8">\n <meta http-equiv="X-UA-Compatible" content="IE=edge">\n <meta name="viewport" content="width=device-width, initial-scale=1.0">\n <meta name="renderer" content="webkit">\n <script src="https://cdn.staticfile.org/jquery/2.2.4/jquery.min.js"></script>\n <!-- <script src='./api/api.js'></script> -->\n \n <script src='https://tinymce-plugin.gitee.io/tinymce/tinymce.js'></script><!-- 必要 -->\n <script src='https://unpkg.com/tinymce-plugin'></script><!-- 必要 -->\n\n <style>\n body{max-width: 1920px; min-width: 900px;width: 100%; margin: 0 auto;}\n header{}\n .header_logo{ display: inline-block;vertical-align: middle;}\n header > div{ display: block; text-align: center;}\n .demo,#showID{ margin-top:50px;}\n #showID{ padding: 20px;}\n #tinymce-app .tinymce-box {padding-bottom: 0px ;}\n .tiny_color{ color:#344A85 ;text-shadow: 0 3px 5px #677285; display: inline-block;margin-right: -20px; vertical-align: middle;}\n .plugin_color { color: #43B984;text-shadow: 0 3px 5px #34435C;display: inline-block;margin-left: -23px; vertical-align: middle;}\n .text-center{ text-align: center;}\n .animated #logoSvgId{\n fill-opacity: 0.75\n }\n a{display: inline-block; padding: 20px;font-size: 20px; list-style: none; text-decoration: none;color: #333;}\n #logoSvgId{display: inline-block; vertical-align: middle;}\n .btn{ border-radius: 20px; outline: none; width: 300px;height: 60px; margin: 20px auto; display: block; background: #1488F5; text-align: center;line-height: 60px; font-size: 28px;letter-spacing: 2px; color: #dedede;}\n </style>\n</head>\n\n<body tp-page-height="498">\n <div class="demo">\n <div id="tinymce-app">\n <div class="tinymce-demo" style="color: #000;">\n <div class="tinymce-cnt" id="mytextarea">\n <div id="fvContentID"><ol>\n <li style="letter-spacing: 2px;"><span style="color: #2dc26b;"><span style="color: #000000;">不知如何使用编辑框可以点击<img src="https://xwjywjb.obs.cn-southwest-2.myhuaweicloud.com/db/UploadFile/2020/11/13/fcd5cc64-aff6-4ded-8f14-6a98b66a2aea.png">(或 Alt+0),查看帮助-【快捷键】【功能介绍】【操作手册】【疑问解答】【反馈问题】 。</span></span></li>\n <li style="letter-spacing: 2px;"><span style="color: #3598db;">鼠标悬浮</span>在<em>功能图标</em>上可了解功能名称</li>\n <li style="letter-spacing: 2px;"><span style="color: #e03e2d;">如过需要修改2020年11月之前的旧新闻,建议先清除格式 或 一键布局<img src="https://xwjywjb.obs.cn-southwest-2.myhuaweicloud.com/db/UploadFile/2020/11/13/e952a0d5-2d30-4d86-ae7d-e8fd5c4e7cc7.png">,将旧新闻样式去掉重新排版</span></li>\n <li style="letter-spacing: 2px;"><span style="color: #e03e2d;">若文档编辑调整过程中发生意外关闭【如:登录时间过长】,并且未存为草稿 可以点击<img src="https://xwjywjb.obs.cn-southwest-2.myhuaweicloud.com/db/UploadFile/2020/12/25/9b1473d3-e399-43d9-86b1-a0cb5970d7d0.png">,恢复文档编辑状态(1小时以内的最近状态)</span></li>\n <li style="letter-spacing: 2px;"><span style="color: #e03e2d;"><span id="attachment_mce_1" contenteditable="false"><img style="width: 30px;" src="https://api.hope55.com/Content/js/tinymce/plugins/attachment/icons/file_type_pdf2.svg" width="30px"><a href="https://xwjywjb.obs.cn-southwest-2.myhuaweicloud.com/db/UploadFile/2020/11/9/a7653b78-f186-4237-81fb-213aac317ebe.pdf" target="_blank" rel="noopener">新编辑器新闻上传操作说明(1).pdf (1.04 M)</a></span> </span></li>\n </ol></div>\n <style> #fvContentID a{display:inline-block } #fvContentID .attachment>img{display:inline-block ;max-width:30px ;min-width:30px ;}#fvContentID .attachment>a{display:contents ;}</style>\n </div>\n </div>\n </div>\n </div>\n <script>\n function savefun(){\n $("#showID").html(tinymceConfig.getHtml())\n }\n\n var xhrOnProgress = function (fun) {\n xhrOnProgress.onprogress = fun;\n return function () {\n var xhr = $.ajaxSettings.xhr();\n if (typeof xhrOnProgress.onprogress !== 'function')\n return xhr;\n if (xhrOnProgress.onprogress && xhr.upload) {\n xhr.upload.onprogress = xhrOnProgress.onprogress;\n }\n return xhr;\n }\n }\n var tinymceConfig= {\n tinyID: "mytextarea",//作用域ID\n placeholder: '', //默认文字\n infoHtml: $(this.tinyID).html(),//初始化内容\n GbaseUrl: '',//全局baseUrl\n OMHtml: '<div style="height: 1500px;"><p><h2>操作手册:</h2></p></div><p>666</p>', //设置操作手册Html\n CPHtml: '',\n }\n tinymce.init({\n selector: '#'+tinymceConfig.tinyID,\n language:'zh_CN',\n menubar:false,\n branding: false,\n min_height:400,\n max_height: 700,\n // baseURL: './'\n plugins: ' print axupimgs clearhtml preview insertdatetime attachment searchreplace visualblocks autolink layout fullscreen toc image upfile link media code codesample table charmap hr pagebreak anchor advlist lists textpattern help emoticons autosave bdmap indent2em axupimgs letterspacing imagetools quickbars attachment wordcount autoresize importword tpCollapse tpTabs tpButtons',\n toolbar_groups: {\n formatting: {\n text: '文字格式',\n tooltip: 'Formatting',\n items: 'bold italic underline | superscript subscript',\n },\n alignment: {\n icon: 'align-left',\n tooltip: 'alignment',\n items: 'alignleft aligncenter alignright alignjustify',\n }\n },\n toolbar: ['|code formatselect fontselect fontsizeselect forecolor backcolor bold italic underline strikethrough link alignment indent2em outdent indent lineheight letterspacing bullist numlist blockquote subscript superscript layout removeformat table image axupimgs media upfile attachment emoticons importword charmap hr pagebreak clearhtml tpImportword codesample visualblocks insertdatetime bdmap quickbars toc cut copy undo redo ltr rtl tpCollapse tpTabs tpButtons restoredraft searchreplace fullscreen help wordcount preview'],\n table_style_by_css: true,\n OperationManualHtml: '',\n CommonProblemHtml: '',\n fixed_toolbar_container:'#tinymce-app .toolbar',\n custom_ui_selector: '#tinymce-app',\n placeholder:''+tinymceConfig.placeholder,\n file_picker_types: 'media',\n powerpaste_word_import: "clean", // 是否保留word粘贴样式 clean | merge \n powerpaste_html_import: 'clean', // propmt, merge, clean\n powerpaste_allow_local_images: true,//\n powerpaste_keep_unsupported_src:true,\n paste_data_images: true,\n toolbar_sticky: false,\n skeletonScreen: true,\n autosave_ask_before_unload: false,\n fontsize_formats: '12px 14px 16px 18px 24px 36px 48px 56px 72px',\n font_formats: '微软雅黑=Microsoft YaHei,Helvetica Neue,PingFang SC,sans-serif;苹果苹方=PingFang SC,Microsoft YaHei,sans-serif;宋体=simsun,serif;仿宋体=FangSong,serif;黑体=SimHei,sans-serif;Arial=arial,helvetica,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco;Times New Roman=times new roman,times;Verdana=verdana,geneva;Webdings=webdings;Wingdings=wingdings,zapf dingbats;',\n images_upload_base_path: '',\n \n images_upload_handler: function (blobInfo, succFun, failFun) {\n var file = blobInfo.blob();\n var reader = new FileReader();\n reader.onload = function(e){\n succFun(e.target.result)\n }\n reader.readAsDataURL(file)\n },\n file_picker_callback: function (succFun, value, meta) { //自定义文件上传函数 \n var filetype = '.pdf, .txt, .zip, .rar, .7z, .doc, .docx, .xls, .xlsx, .ppt, .pptx, .mp3, .mp4';\n var input = document.createElement('input');\n input.setAttribute('type', 'file');\n input.setAttribute('accept', filetype);\n input.click();\n input.onchange = function () {\n var file = this.files[0];\n var data = new FormData();\n data.append("file", file);\n $.ajax({\n data: data,\n type: 'GET',\n url: './api/file.json',\n header:{'Content-Type':'multipart/form-data'},\n cache: false,\n contentType: false,\n processData: false,\n dataType: 'json',\n xhr: xhrOnProgress(function (e) {\n const percent = (e.loaded / e.total * 100 | 0) + '%';//计算百分比\n // console.log(percent);\n progressCallback(percent);\n \n }),\n }).then(function (data) {\n if ( data.code== 200) {\n succFun(data.data,{ text: data.data });\n }\n }).fail(function (error) {\n failFun('上传失败:' + error.message)\n });\n }\n },\n file_callback: function (file, succFun) { //文件上传 file:文件对象 succFun(url|string,obj) 成功回调\n var data = new FormData();\n data.append("file", file);\n $.ajax({\n data: data,\n type: 'GET',\n url: '/tinymce/api/file.json',\n cache: false,\n contentType: false,\n processData: false,\n header:{'Content-Type':'multipart/form-data'},\n dataType: 'json',\n xhr: xhrOnProgress(function (e) {\n const percent = (e.loaded / e.total * 100 | 0) + '%';//计算百分比\n progressCallback(percent);\n }),\n }).then(function (data) {\n if ( data.code== 200) {\n succFun(data.data,{text: file.name});\n } \n }).fail(function (error) {\n // failFun('上传失败:' + error.message)\n });\n },\n tp_attachment_max_size: 5009715200,\n // attachment_style: '.attachment>img{display:inline-block!important;max-width:30px!important;}',\n tp_attachment_assets_path: '/tinymce/plugins/attachment/icons',\n \n \n init_instance_callback: function(editor){\n $('#tinymce-app').fadeIn(1000);\n // editor.execCommand('selectAll');\n // editor.selection.getRng().collapse(false);\n // editor.focus();\n }\n }).then(function(res){\n tinymce.feedBackIframeUrl ='/tinymce/plugins/help/docBox.html'; //反馈链接\n });\n </script>\n</body>\n</html>\n\n
\n