MarkupEditor Customization Demo

The customization features of the MarkupEditor are all exposed through the <markup-editor> element web component attributes. You can:

In the simplest case, if you want a full page WYSIWYG editor with a default toolbar, you can embed the MarkupEditor in just two lines:


    <markup-editor></markup-editor>
    <script src="markup-editor.js" type="module"></script>
        

Default Web Component

This <markup-editor> element uses the default toolbar and specifies editor1.css in the userstyle attribute. In this case, the editor1.css styling is used to set the border and height of the <markup-editor> element.


<markup-editor userstyle="editor1.css"</markup-editor>
            

Customized Web Component