• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4520: Copy paste from MS Word makes your topics toast

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension TinyMCEPlugin Urgent Closed TWiki:Main.KennethLavrsen minor 4.2.0

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


When you paste some formatted text from MS Word it totally destroys the topic in some cases.

See this topic


And then after having played a little with TMCE adding some bullets and a small table I had the same topic with the new bullets and the table.

Then I created a garbage doc in word.

I wrote two lines of random keyboard banging text.

First line I bolded and made with a larger font.

Second line I left like default.

Then I pasted this into the TMCE near the top of the doc. And the result


The whole thing became total garbage.

The table and bullets became toast.

And the text below that was OK suddenly had a lot of

-- TWiki:Main/KennethLavrsen - 28 Aug 2007

FYI I just tried Open Office and it worked like a dream.

-- TWiki:Main.CrawfordCurrie - 28 Aug 2007

I now paste in two lines of text from MS Word

Something in word in boldAnd something in word plain

and below same thing from Wordpad.

Something in bold

And something normal

And when I save it now I expect the MS Word text to be garbage and the Wordpad to end up on one line with html tags for bold instead of TML.

-- TWiki:Main.KennethLavrsen - 28 Aug 2007

View raw to see the garbage. And the Wordpad turned out not too bad. It was two lines.

But when you then edit again, it is all a bug mess and impossible to edit.

-- TWiki:Main.KennethLavrsen - 28 Aug 2007

* *

* *

And the editing made all bold. It looked OK first time I saved. Then I added text below in Edit mode (not comment plugin) and it is all toast.

This last note is added with comment plugin

-- TWiki:Main.KennethLavrsen - 28 Aug 2007

* *

* *

Notice how also the form below and left bar gets screwed up.

-- TWiki:Main.KennethLavrsen - 28 Aug 2007

I enabled the "Word paste" plugin in TinyMCE by default. Please try again when you get a chance. I don't have a copy of word, so it's tough to test frown And note that you can fiddle with the parameters to TinyMCE to improve the paste; modify the TINYMCEPLUGIN_INIT variable. Moxie doc is at http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/paste


* *

* *

As log as the paste problem with pop up is open there is no point trying this as the fix for the other will affect this. So I will try later

-- TWiki:Main.KennethLavrsen - 30 Aug 2007

* *

As of SVN 14685 the copy paste from MS Word is not toasting a topic as badly as it did here.

So I am closing this. If it turns bad again then we have now noted that SVN 14685 was pretty OK

-- TWiki:Main.KennethLavrsen - 02 Sep 2007

Summary Copy paste from MS Word makes your topics toast
ReportedBy TWiki:Main.KennethLavrsen
Codebase ~twiki4
SVN Range TWiki-4.2.0, Mon, 27 Aug 2007, build 14639
AppliesTo Extension
Component TinyMCEPlugin
Priority Urgent
CurrentState Closed
WaitingFor TWiki:Main.KennethLavrsen
Checkins TWikirev:14656 TWikirev:14657
TargetRelease minor
ReleasedIn 4.2.0
Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r9 - 2007-09-02 - KennethLavrsen
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback