Show blocks

This plugin adds the command to visualize all block-level elements by surrounding them with an outline and displaying their element name at the top-right.

Options

Jodit.make('#editor', { showBlocks: { enable: false, color: '#ccc', tagList: ['p', 'div', '...'] } });
Copy

Commands

  • enableShowBlocks
  • disableShowBlocks
  • toggleShowBlocks
const editor = Jodit.make('#editor'); editor.execCommand('toggleShowBlocks');
Copy

Demo

Get connected wth us on social networks!