locked
How to paste plain text or remove formatting in Rich Text Editor RRS feed

  • Question

  • I need to put the contents of a .doc I've been provided into a Content Editor Web Part.  How do I paste as plain text into the Rich Text Editor so that I can then apply styles within the RTE? I don't see anyway to do that, or to remove formating from a selection.
    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    Monday, May 9, 2011 10:24 PM

Answers

  • In that case, take tip #2. Copy the contents to Notepad. It'll get rid of every bit of html tags and give you "TRUE" plain text.

    BTW, there's also an option in CEWP editor to clear formats. Select the contents and then click on the style button. There should be an option that will reset the formatting to CEWP's default. I think it's called remove inline styles. You can try that out too.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by run4it Thursday, May 12, 2011 3:36 PM
    Wednesday, May 11, 2011 12:53 AM

All replies

  • Use the Clear Formatting feature from MS Word. Just select the content and then click on "Clear formatting" button.

    http://office.microsoft.com/en-us/word-help/clear-all-text-formatting-HA010210679.aspx

    Another option could be copy and paste the content into Notepad. Then copy the content from Notepad to the CEWP.

     


    Pman
    http://www.pmansLab.com/
    • Proposed as answer by Heather W Tuesday, May 10, 2011 12:23 PM
    • Unproposed as answer by run4it Tuesday, May 10, 2011 3:46 PM
    Tuesday, May 10, 2011 2:58 AM
  • Thank you for that tip, but when I paste the "cleared" content from the .docx document into the Content Editor in SP, then apply headings, and "normal" on the body copy , when I look at the rendered source code I still see this:

    <h2 class=MsoNormal>

    Maybe it's no bid deal, but it drives me crazy to have that extra junk in there.


    There are no mistakes; every result tells you something of value about what you're are trying to accomplish.
    Tuesday, May 10, 2011 3:50 PM
  • In that case, take tip #2. Copy the contents to Notepad. It'll get rid of every bit of html tags and give you "TRUE" plain text.

    BTW, there's also an option in CEWP editor to clear formats. Select the contents and then click on the style button. There should be an option that will reset the formatting to CEWP's default. I think it's called remove inline styles. You can try that out too.

     


    Pman
    http://www.pmansLab.com/
    • Marked as answer by run4it Thursday, May 12, 2011 3:36 PM
    Wednesday, May 11, 2011 12:53 AM
  • Hi,

     

    According to your description, you want to paste copy texts to word or Rich Text Editor without formatting. I suggest that you should have a try to use this 3<sup>rd</sup> party tool called PureText. For more information, please have a check this blog:

    http://www.raymond.cc/blog/archives/2009/05/28/paste-copied-texts-to-word-or-rich-text-editor-without-formatting/

     

    Best Regards
    David Hu

     

    Wednesday, May 11, 2011 1:57 AM