RichTextEditor Demo
Home Pricing

## Embed video

Embed video dialog allows you paste video URLs into the editor at the selected position and allows you to set the size of the video.

Try embedding following video use Embed video dialog.

### Demo Code:

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

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

    editor.setHTMLCode("<p>Hello world!</p>");

    <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"></div>
    <script>
    	var editor1 = new RichTextEditor("#div_editor1");
    	editor1.setHTMLCode("<p>Hello world!</p>");
    </script>