Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE and importing / copy paste from Microsoft Word

I am struggling to get an accurate answer on this questions on whether TinyMCE supports pasting from Microsoft word. I guess there may be a lot of out of date information on the web on this topic as I have seen answers such as:

  1. There is a plugin you can install to get it to work
  2. You have to use a separate "paste from word" button as opposed to pasting in the editor
  3. it should work fine out of the box
  4. it doesn't work at all (no matter what you do)

I have tested this and it doesn't seem like it works out of the box (answer #3) but I am not sure if this is due to a configuration / initialization issue on my side or there is some other external thing needed.

Any help would be appreciated.

like image 558
leora Avatar asked Aug 10 '09 15:08

leora


People also ask

What is PowerPaste in TinyMCE?

The TinyMCE PowerPaste plugin automatically cleans up content from Microsoft Word/Excel and HTML sources to ensure clean, compliant content that matches the look and feel of the site. Note: Due to limitations in Excel online (part of Office Live) PowerPaste does not support pasting from Excel online.

Can you copy and paste from Word to WordPress?

What to Know. Copy text from Word > paste into Notepad or Text Editor. Copy text from Notepad/Text Editor > paste into WordPress. Or, copy text from Word, then go to post editor in WordPress dashboard.

How do I export TinyMCE content to a Word document?

The ExportToDoc plugin adds an export button to the menu of the TinyMCE editor. By clicking the Export to Doc button, TinyMCE editor content HTML will be converted to Microsoft Word document in the same format and you can save it to your computer as a . doc file.

How do I automatically paste text in Word?

Make plain text the paste default in Word 2010In Word 2010, click File > Options > Advanced. In both programs, scroll to the "Cut, copy, and paste" section of the Advanced settings. In the drop-down menus to the right of "Paste between documents" and "Paste between programs," choose Keep Text Only.


2 Answers

It does indeed work (as well as it can). You will need to use the "paste from Word" button, though, so TinyMCE can filter any of the extraneous markup that Word adds to its content. You'll also have to make sure the paste plugin (which is part of the the default install) is loaded.

I believe that you'll need to explicitly add the button in your theme, though. Take a look at this example from the TinyMCE wiki.

plugins : "paste",
theme_advanced_buttons3_add : "pastetext,pasteword,selectall",

will add the plugin and button (to whichever row you'd like). The TinyMCE wiki claims paste does Word filtering by default, but I've never seen it work in the wild without explicitly using the "paste from Word" button.

like image 62
ajm Avatar answered Sep 20 '22 22:09

ajm


For me it works without "paste from word" button by directly pasting the content from word. I am using 3.3.9.3

like image 21
ppant Avatar answered Sep 21 '22 22:09

ppant