RichTextEditor Demo
Home Pricing

## Cleaning pasted content

By default, RichTextEditor will automatically detect/clean the dirty pasted content. You have full control over how contributors paste content into the Editor. For example, you can disable the paste function, force pasting as plain text or prompt the user about cleaning up the content when pasting from MS Word.

Richtexteditor allows you disable the paste function, force pasting as plain text or automatically clean up the content when pasting from MS Word.

### Demo Code:

    import { createRichTextEditor } from "ts-rich-text-editor";

    const editor = await createRichTextEditor("#div_editor1", {}, {
      basePath: "/richtexteditor",
    });

    <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">
    	<p>Richtexteditor allows you disable the paste function, force pasting as plain text or automatically clean up the content when pasting from MS Word.</p>
    	<p><img src='/images/editor-image.png' /></p>
    </div>

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