This is a migrated thread and some comments may be shown as answers.

[Solved] clear formatting of content from Word

1 Answer 15 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Wayne
Top achievements
Rank 1
Wayne asked on 06 Jun 2013, 04:31 AM
I know this is an rarely scenario, but do we have a way to clear all formatting while user trying to copy content from other source(such as Word) to our editor?  I need only plain text here.

e.g.

<p>Text</p>

to

Text

1 Answer, 1 is accepted

Sort by
0
Wayne
Top achievements
Rank 1
answered on 06 Jun 2013, 06:07 AM
I can add a client javascript function to remove all "<.*?>" (regex). But it would remove content matches this regulare expression.
Tags
Editor
Asked by
Wayne
Top achievements
Rank 1
Answers by
Wayne
Top achievements
Rank 1
Share this question
or