All demos ↓← All 93 demos

Cleaning pasted content

Paste from Word or a web page. Choose how much formatting to keep.

RichTextEditor can disable paste, force plain-text paste, or automatically clean up content pasted from Microsoft Word.

RichTextEditor screenshot

Example code

<link rel="stylesheet" href="/richtexteditor/rte_theme_default.css" />
<script type="text/javascript" src="/richtexteditor/rte.js"></script>
<script type="text/javascript" src='/richtexteditor/plugins/all_plugins.js'></script>


<div id="div_editor1" style="height: 340px">
    <p>RichTextEditor can disable paste, force plain-text paste, or automatically clean up content pasted from Microsoft Word.</p>
    <p><img src='/images/editor-image.png' alt='RichTextEditor screenshot' /></p>
</div>

<script>
    var editor1cfg = { height: "340px" }
    var editor1 = new RichTextEditor("#div_editor1", editor1cfg);
</script>

Use this in your app

This demo runs the same editor you get for every framework. See how to add it to yours: