The editor can be used as a “drop-in” replacement for textareas, allowing Content Block embed codes from
Content Block Manager to be
highlighted.
It works by overlaying a transparent textarea on top of a styled <div> that contains the highlighted content. This ensures that standard textarea behaviour is maintained while providing visual highlighting.
Usage
To initialise the editor on a textarea, add the data-module="content-block-highlight" attribute: