Skip to content

Slots

ModuloEditor uses data-mo-editor-* attributes to identify editor sections.

Each attribute represents a slot that can be used to build your layout.

Required slots

These slots must exist for the editor to work.

SlotDescription
data-mo-editor-inputEditor input element
data-mo-editor-previewPreview container

Optional slots

These slots are optional and only used if present.

SlotDescription
data-mo-editor-toolbarToolbar container
data-mo-editor-headerHeader container
data-mo-editor-footerFooter container
data-mo-editor-statusStatus container
data-mo-editor-bodyLayout wrapper

Example

html
<div data-mo-editor>
  <div data-mo-editor-toolbar></div>

  <div data-mo-editor-body>
    <textarea data-mo-editor-input></textarea>
    <div data-mo-editor-preview></div>
  </div>

  <div data-mo-editor-status></div>
</div>

You are free to omit any optional slot.