返回介绍

Paste from Word

发布于 2019-05-06 字数15469 浏览 946 评论 0

Improve your productivity & writing experience

TinyMCE PowerPaste automatically cleans up content from Microsoft Word and other HTML sources to ensure clean, compliant content that matches the look and feel of your site or app.

TinyMCE PowerPaste is a Premium Plugin from TinyMCE. We have flexible purchase options: as a stand-alone plugin, to OEM and custom enterprise pricing.

Customers: we have full documentation explaining how to install and configure TinyMCE PowerPaste. Go to the docs.

Example use cases

Content from Microsoft Word

If you paste content from Microsoft Word into your app, you probably know the published page usually doesn’t match the site’s style. Fonts can be different, images missing and formatting not the same as their original document.

This can be time consuming for users to fix, and usually involves manually editing HTML. It can also increase support requests.

TinyMCE PowerPaste automatically “cleans” pasted content, fixing these issues. It can also automatically upload images to a server, helping you spend time on more productive tasks.

Content from Microsoft Excel

TinyMCE PowerPaste also makes light work of pasting Excel content into your app, automatically creating HTML compliant tables in the process.

While developers are very familiar writing HTML tables, most content creators literally don’t know where to start. And then there’s the issue of manually entering their Excel data into the table. This isn’t a fun experience either.

For users of both Word and Excel, PowerPaste will dramatically improve the content production experience you deliver to your clients.

Content from the internet

If you cut and paste content from the internet into your app – which includes almost everyone – PowerPaste also works its auto-magic.

Just as it cleans up rogue formatting from sources like Word, it does the same for internet content. Need to grab a quote from a website for your blog post? PowerPaste removes classes, minimizing the chance of unwanted CSS overriding your stylesheets.

It also does the same for images, automatically linking to the source image URL. Perfect content, every time.

Buy TinyMCE PowerPaste

Start with our dedicated product page to see our flexible pricing options. OEM and enterprise customers should contact sales directly. Still not sure? Check out the demo below.

PowerPaste demo

TinyMCE HTML JS Edit on CodePen


<textarea id="paste-from-word">
  <h2>
    <span class="span">
        <img src="//www.tiny.cloud/images/glyph-tinymce@2x.png" alt="TinyMCE Logo" width="110" height="97" style="float: right">
    </span>
    <span style="color: #828282; font-size: 35px; font-family: avenir; font-weight: 200;">TinyMCE demo: PowerPaste plugin!</span>
</h2>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">PREMIUM PLUGIN: The TinyMCE  <a  external-link="true" href="https://www.tiny.cloud/docs/enterprise/paste-from-word/">PowerPaste plugin</a> automatically cleans up and transfers content & images from Microsoft Word and HTML sources to ensure clean, compliant content that matches the look and feel of the site.</p>
  
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">COPY AND PASTE FROM WORD or EXCEL</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Copy and paste content from MS Word or Excel into this editor.</li>
<li>Choose Remove Formatting (remove inline styles) or Keep Formatting (keep inline styles)</li>
</ol>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">COPY AND PASTE FROM WEBSITE OR HTML SOURCES</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Copy and paste content from website content into this editor.</li>
<li>Choose Remove Formatting (remove inline styles) or Keep Formatting (keep inline styles)</li>
</ol>
<p style="color: #7e7e7e; font-size: 15px; font-family: avenir;font-weight: 500;">DRAG AND DROP IMAGE</p>
<ol style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
<li>Drag a local image into this editor.</li>
</ol>
  <p>---------------------------------------------------------------------</p>
  <h2 style="color: #7e7e7e; font-size: 20px; font-family: avenir;font-weight: 500;">Got questions or need help?</h2>

  <ul style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
    <li>Our <a external-link="true" href="https://www.tiny.cloud/docs/">documentation</a> is a great resource for learning how to configure TinyMCE.</li>
    <li>Have a specific question? Visit the <a external-link="true" href="https://community.tinymce.com" target="_blank">Community Forum</a>.</li>
    <li>We also offer enterprise grade support as part of <a external-link="true" href="https://www.tiny.cloud/pricing">TinyMCE Enterprise</a>.</li>
  </ul>

  <p style="color: #7e7e7e; font-size: 14px; font-family: avenir;font-weight: 500;">
    Thanks for supporting TinyMCE! We hope it helps you and your users create great content.<br>All the best from the TinyMCE team.
  </p>
</textarea>



tinymce.init({
  selector: 'textarea#paste-from-word',
  height: 400,
  menubar: true,
  plugins: [
    'advlist autolink lists link image charmap print preview anchor',
    'searchreplace visualblocks advcode fullscreen',
    'insertdatetime media table contextmenu powerpaste'
  ],
  toolbar: 'undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image code',
  powerpaste_allow_local_images: true,
  powerpaste_word_import: 'prompt',
  powerpaste_html_import: 'prompt',
  content_css: [
    '//fonts.googleapis.com/css?family=Lato:300,300i,400,400i',
    '//www.tiny.cloud/css/codepen.min.css'
  ]
});

(function() { var isIE = !!window.MSInputMethodContext && !!document.documentMode; if (isIE && document.getElementsByClassName(“ie11_optional”)[0] !== undefined) { document.getElementsByClassName(“ie11_optional”)[0].style.display = ‘none’; } })(); (function() { tinymce.init({ selector: ‘textarea#paste-from-word’, height: 400, menubar: true, plugins: [ ‘advlist autolink lists link image charmap print preview anchor’, ‘searchreplace visualblocks advcode fullscreen’, ‘insertdatetime media table contextmenu powerpaste’ ], toolbar: ‘undo redo | insert | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image code’, powerpaste_allow_local_images: true, powerpaste_word_import: ‘prompt’, powerpaste_html_import: ‘prompt’, content_css: [ ‘//fonts.googleapis.com/css?family=Lato:300,300i,400,400i’, ‘//www.tiny.cloud/css/codepen.min.css’ ] }); })(); (function() { /* TODO: more js, less jekyll */ var id = “paste-from-word”; var html = decodeURIComponent(“%0A%3Ctextarea%20id=%22paste-from-word%22%3E%0A%20%20%3Ch2%3E%0A%20%20%20%20%3Cspan%20class=%22span%22%3E%0A%20%20%20%20%20%20%20%20%3Cimg%20src=%22//www.tiny.cloud/images/glyph-tinymce@2x.png%22%20alt=%22TinyMCE%20Logo%22%20width=%22110%22%20height=%2297%22%20style=%22float:%20right%22%3E%0A%20%20%20%20%3C/span%3E%0A%20%20%20%20%3Cspan%20style=%22color:%20#828282;%20font-size:%2035px;%20font-family:%20avenir;%20font-weight:%20200;%22%3ETinyMCE%20demo:%20PowerPaste%20plugin!%3C/span%3E%0A%3C/h2%3E%0A%3Cp%20style=%22color:%20#7e7e7e;%20font-size:%2015px;%20font-family:%20avenir;font-weight:%20500;%22%3EPREMIUM%20PLUGIN:%20The%20TinyMCE%20%20%3Ca%20%20href=%22https://www.tiny.cloud/docs/enterprise/paste-from-word/%22%3EPowerPaste%20plugin%3C/a%3E%20automatically%20cleans%20up%20and%20transfers%20content%20&%20images%20from%20Microsoft%20Word%20and%20HTML%20sources%20to%20ensure%20clean,%20compliant%20content%20that%20matches%20the%20look%20and%20feel%20of%20the%20site.%3C/p%3E%0A%20%20%0A%3Cp%20style=%22color:%20#7e7e7e;%20font-size:%2015px;%20font-family:%20avenir;font-weight:%20500;%22%3ECOPY%20AND%20PASTE%20FROM%20WORD%20or%20EXCEL%3C/p%3E%0A%3Col%20style=%22color:%20#7e7e7e;%20font-size:%2014px;%20font-family:%20avenir;font-weight:%20500;%22%3E%0A%3Cli%3ECopy%20and%20paste%20content%20from%20MS%20Word%20or%20Excel%20into%20this%20editor.%3C/li%3E%0A%3Cli%3EChoose%20Remove%20Formatting%20(remove%20inline%20styles)%20or%20Keep%20Formatting%20(keep%20inline%20styles)%3C/li%3E%0A%3C/ol%3E%0A%3Cp%20style=%22color:%20#7e7e7e;%20font-size:%2015px;%20font-family:%20avenir;font-weight:%20500;%22%3ECOPY%20AND%20PASTE%20FROM%20WEBSITE%20OR%20HTML%20SOURCES%3C/p%3E%0A%3Col%20style=%22color:%20#7e7e7e;%20font-size:%2014px;%20font-family:%20avenir;font-weight:%20500;%22%3E%0A%3Cli%3ECopy%20and%20paste%20content%20from%20website%20content%20into%20this%20editor.%3C/li%3E%0A%3Cli%3EChoose%20Remove%20Formatting%20(remove%20inline%20styles)%20or%20Keep%20Formatting%20(keep%20inline%20styles)%3C/li%3E%0A%3C/ol%3E%0A%3Cp%20style=%22color:%20#7e7e7e;%20font-size:%2015px;%20font-family:%20avenir;font-weight:%20500;%22%3EDRAG%20AND%20DROP%20IMAGE%3C/p%3E%0A%3Col%20style=%22color:%20#7e7e7e;%20font-size:%2014px;%20font-family:%20avenir;font-weight:%20500;%22%3E%0A%3Cli%3EDrag%20a%20local%20image%20into%20this%20editor.%3C/li%3E%0A%3C/ol%3E%0A%20%20%3Cp%3E———————————————————————%3C/p%3E%0A%20%20%3Ch2%20style=%22color:%20#7e7e7e;%20font-size:%2020px;%20font-family:%20avenir;font-weight:%20500;%22%3EGot%20questions%20or%20need%20help?%3C/h2%3E%0A%0A%20%20%3Cul%20style=%22color:%20#7e7e7e;%20font-size:%2014px;%20font-family:%20avenir;font-weight:%20500;%22%3E%0A%20%20%20%20%3Cli%3EOur%20%3Ca%20href=%22https://www.tiny.cloud/docs/%22%3Edocumentation%3C/a%3E%20is%20a%20great%20resource%20for%20learning%20how%20to%20configure%20TinyMCE.%3C/li%3E%0A%20%20%20%20%3Cli%3EHave%20a%20specific%20question?%20Visit%20the%20%3Ca%20href=%22https://community.tinymce.com%22%20target=%22_blank%22%3ECommunity%20Forum%3C/a%3E.%3C/li%3E%0A%20%20%20%20%3Cli%3EWe%20also%20offer%20enterprise%20grade%20support%20as%20part%20of%20%3Ca%20href=%22https://www.tiny.cloud/pricing%22%3ETinyMCE%20Enterprise%3C/a%3E.%3C/li%3E%0A%20%20%3C/ul%3E%0A%0A%20%20%3Cp%20style=%22color:%20#7e7e7e;%20font-size:%2014px;%20font-family:%20avenir;font-weight:%20500;%22%3E%0A%20%20%20%20Thanks%20for%20supporting%20TinyMCE!%20We%20hope%20it%20helps%20you%20and%20your%20users%20create%20great%20content.%3Cbr%3EAll%20the%20best%20from%20the%20TinyMCE%20team.%0A%20%20%3C/p%3E%0A%3C/textarea%3E%0A%0A”); var js = decodeURIComponent(“%0Atinymce.init(%7B%0A%20%20selector:%20’textarea#paste-from-word’,%0A%20%20height:%20400,%0A%20%20menubar:%20true,%0A%20%20plugins:%20[%0A%20%20%20%20’advlist%20autolink%20lists%20link%20image%20charmap%20print%20preview%20anchor’,%0A%20%20%20%20’searchreplace%20visualblocks%20advcode%20fullscreen’,%0A%20%20%20%20’insertdatetime%20media%20table%20contextmenu%20powerpaste’%0A%20%20],%0A%20%20toolbar:%20’undo%20redo%20%7C%20insert%20%7C%20styleselect%20%7C%20bold%20italic%20%7C%20alignleft%20aligncenter%20alignright%20alignjustify%20%7C%20bullist%20numlist%20outdent%20indent%20%7C%20link%20image%20code’,%0A%20%20powerpaste_allow_local_images:%20true,%0A%20%20powerpaste_word_import:%20’prompt’,%0A%20%20powerpaste_html_import:%20’prompt’,%0A%20%20content_css:%20[%0A%20%20%20%20’//fonts.googleapis.com/css?family=Lato:300,300i,400,400i’,%0A%20%20%20%20’//www.tiny.cloud/css/codepen.min.css’%0A%20%20]%0A%7D);%0A”); var css = “”; var tabNames = [“run”,”html”,”js”]; /* Note: there are some other fields we could populate here to polish this. */ /* See: https://blog.codepen.io/documentation/api/prefill/ */ var data = { title: “TinyMCE Example”, description: ”, html: html, css: css, css_external: ‘https://www.tiny.cloud/css/codepen.min.css’, js: js, js_external: ‘https://cloud.tinymce.com/5/tinymce.min.js?apiKey=qagffr3pkuv17a8on1afax661irst1hbr4e6tbv888sz91jc’ }; document.getElementById(“codepen_data_paste-from-word”).value = JSON.stringify(data); /* TODO: */ var tabs = tabNames.map(function(t) { return { tab: document.getElementById(“codepen_tab_” + t + “_” + id), pane: document.getElementById(“codepen_pane_” + t + “_” + id) }; }); tabs.forEach(function(t) { t.tab.onclick = function(e) { tabs.forEach(function(tt) { tt.pane.style.display = t === tt ? ‘block’ : ‘none’; tt.tab.className = t === tt ? ‘codepen_tab_selected’ : ‘codepen_tab_deselected’; }); e.preventDefault(); }; }); if (document.getElementById(“codepen_tab_codepen_” + id) !== null) { document.getElementById(“codepen_tab_codepen_” + id).onclick = function() { document.getElementById(“codepen_form_” + id).submit(); }; } })();

您暂时不能评论!

管理员开启了需要登录才能够评论,你可以免费注册一个本站的账号。

还没有评论!

目前还没有任何评论,快来抢沙发吧!