TinyMCE and importing / copy paste from Microsoft Word

后端 未结 2 529
长发绾君心
长发绾君心 2020-12-09 17:19

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

相关标签:
2条回答
  • 2020-12-09 17:44

    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.

    0 讨论(0)
  • 2020-12-09 17:45

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

    0 讨论(0)
提交回复
热议问题