editor

Source

<drab-editor>
    <textarea
        data-content
        class="input mb-2 h-36"
        placeholder="asterisk: ctrl+i, anchor: ctrl+["
    ></textarea>
    <div class="flex gap-2">
        <button
            data-trigger
            data-value="&#8226; "
            data-type="block"
            data-key="i"
            class="button button-primary"
        >
            Bullet
        </button>
        <button
            data-trigger
            data-value="# "
            data-type="block"
            class="button button-primary"
        >
            Heading
        </button>
        <button
            data-trigger
            data-value="*"
            data-type="wrap"
            class="button button-primary italic"
        >
            Italic
        </button>
        <button
            data-trigger
            data-value="[text](href)"
            data-type="inline"
            data-key="["
            class="button button-primary"
        >
            Anchor
        </button>
    </div>
</drab-editor>