When I cut and paste from Notepad I get these _mcePaste div tags. Why?

by Ivan on June 17, 2009

I write all my posts in Word, cut/paste into Notepad to remove Word’s tags, and then into WordPress. This morning I noticed that it (Notepad) is adding this line of code to the article.

When I cut and paste from Notepad I get these odd div tags. This never happened before. Usually when I cut/paste from NotePad it remove alls divs tags and what not from the Word docs I was writing in.

div id=”_mcePaste” style=”position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;”

It also means that when you paste into WordPress, the text doesn’t appear, unless you delete this tag.

Where is this coming from?

Any ideas?

Regards,

Ivan

PS – if you haven’t got enough to do already, you can follow me on Twitter @ivanwalsh

Need help with your web writing? Click here for a Free Quote


Click here to get a free quote

  • Matt

    I just noticed that too. Did you just happen to upgrade to WordPress 2.8? I never noticed this problem until upgrading.

  • ivanwalsh

    Hi Matt,

    Yes, I did, Upgraded at the weekend and it's been like this since.

    I found a work around!

    In Notepad, dont select the very first character.

    Select the rest of the text and paste into the WordPress UI and it should be fine.

    I'll tell WP and see if they can look at it.

    Enjoy the weekend.

    Ivan

  • http://www.timwindsor.com timwindsor

    I just ran up against this today for the first time. I believe I've isolated what makes it happen.

    To invoke the _mcePaste bug:

    While running Safari Mac 4.0.3, and while working in WP 2 .8.4, attempt to paste any text which has DOUBLE RETURNS (such as at the end of a paragraph) and the editor will wrap each paragraph with:

    div id=”_mcePaste” style=”position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;

    There may be more browsers that see this behavior, but I’m fairly certain that it’s the double return that is invoking the issue.

Previous post:

Next post: