RichTextEditor Demo
Home Pricing

## Drag and drop content

Drag and drop editing allows you to select text from web and then insert the selected text by dragging it into the editor.

#### Try it:

- Cake marzipan bonbon. Jujubes biscuit halvah. Brownie toffee pudding biscuit jujubes cookie croissant. Candy jelly beans cotton candy marshmallow bear claw chocolate cake pastry jelly.
- Sweet marshmallow chocolate. Oat cake tootsie roll sweet roll jelly topping gingerbread cake. Apple pie cake sugar plum.

Drag the content above and insert them into the editor.

### 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>Drag the content above and insert them into the editor.</p>
    </div>

    <script>
    	var editor1 = new RichTextEditor("#div_editor1");
    </script>