System.register(["./pinia-legacy.js","./vue-legacy.js"],(function(s){"use strict";var n;return{setters:[function(){},function(s){n=s.M}],execute:function(){s("default",n({components:{},template:'<div class="fv-mardown-html"><div class="fv-mardown-main tp-doc"><h1 id="🚀tpImportword" tabindex="-1"><a class="header-anchor" href="#🚀 tpImportword">#</a> 🚀 tpImportword</h1>\n<p><a href="https://github.com/tinymce-plugin" target="_blank"><img src="https://tinymce-plugin.github.io/badge.svg" alt="tinymce-plugin"></a> \n<a href="https://www.npmjs.com/package/@tinymce-plugin/tp-importword" target="_blank"><img src="https://img.shields.io/npm/v/@tinymce-plugin/tp-importword.svg" alt="release candidate"></a> \n<a href="https://www.tiny.cloud" target="_blank"><img src="https://img.shields.io/badge/tinymce-5.2.0~5.x.x-green.svg" alt="tinymce Version"></a> \n<a href="https://github.com/tinymce-plugin/tp-indent2em/blob/main/LICENSE" target="_blank"><img src="https://img.shields.io/github/license/tinymce-plugin/tp-indent2em.svg" alt="GitHub license"></a> \n<a href="https://github.com/tinymce-plugin/tp-importword" target="_blank"><img src="https://img.shields.io/npm/dw/@tinymce-plugin/tp-importword" alt="tinymce Version"></a></p>\n<p>tpImportword 插件用于 <code class="fv-code_inline">tinymce</code> 富文本编辑器 实现导入word功能, 并且最大可能保存布局样式与颜色等</p>\n<p>欢迎提供好的建议 或者反馈bug</p>\n<div class="warning fv-state-tip fv-warning"><p class="fv-state-title" ></p>\n<h3 id="注意" tabindex="-1"><a class="header-anchor" href="#注意">#</a> 注意</h3>\n<p>目前及支持 docx 文件</p>\n</div>\n<div class="tip fv-state-tip fv-tip"><p class="fv-state-title" >提示</p>\n<p>导入word 插件导入的图片默认是base64 ，需要配置 <strong><code class="fv-code_inline">automatic_uploads</code></strong> 属性,同时需要保证配置了 <strong><code class="fv-code_inline">images_upload_handler</code></strong>, 可将导入的图片自动上传服务器转成url链接</p>\n<pre class="hljs fv-hljs highlight-line"><ul class="highlight-line-number "  ><li ><span>1</span></li><li ><span>2</span></li><li ><span>3</span></li><li class="line"><span>4</span></li><li class="line"><span>5</span></li><li ><span>6</span></li><li ><span>7</span></li><li ><span>8</span></li><li ><span>9</span></li></ul><code class=" hljs  hljs-js" @click.stop="()=>{}"> <span class="hljs-keyword">import</span> <span class="hljs-string">&quot;@tinymce-plugin/tp-importword&quot;</span>;\n tinymce.<span class="hljs-title function_">init</span>({\n  ...\n   <span class="hljs-attr">images_upload_handler</span>: <span class="hljs-function">(<span class="hljs-params">blobInfo, succFun, failFun</span>)=&gt;</span>{ ... }\n   <span class="hljs-attr">automatic_uploads</span>: <span class="hljs-literal">true</span>\n   <span class="hljs-attr">plugins</span>: <span class="hljs-string">&quot;tpImportword&quot;</span>\n   <span class="hljs-attr">toolbar</span>: <span class="hljs-string">&quot;tpImportword&quot;</span>\n  ...\n })\n</code><div class="language-text" >js</div></pre>\n</div>\n</div></div><PagesRouter  docPath="__docs__/introduction.md" mapType="docs" docRepo="tp-importword" pagesName="introduction_t_97yacm1665394502088_p_" />'}))}}}));
