The MUDS Editor comes with 3 built-in menu options: full(which is default), minimal and custom.
The full menu includes, as the name might suggest, all the available menu items. Where as the minimal menu option includes: underline, strikeThrough, italic, bold, undo, redo.
If you want full control over which menu items to use, please refer to our section about customizing menu items.
html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; } b { display: block; margin-bottom: 0.5rem; }
<!-- Include the MUDS stylesheet --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.css"> <b>Full Editor</b> <!-- Create the editor container --> <div id="full-editor"></div> <!-- Include the MUDS library --> <script src="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.js"></script> <!-- Initialize MUDS editor --> <script> var muds = new muds({ selector: 'editor', menuStyle: 'full' }); </script>
html, body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"; font-size: 16px; } b { display: block; margin-bottom: 0.5rem; }
<!-- Include the MUDS stylesheet --> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.css"> <b>Minimal Editor</b> <!-- Create another editor container --> <div id="minimal-editor"></div> <!-- Include the MUDS library --> <script src="https://cdn.jsdelivr.net/npm/[email protected]/muds.min.js"></script> <!-- Initialize MUDS editor --> <script> var muds = new muds({ selector: 'editor', menuStyle: 'minimal' }); </script>