Visual Blocks plugin
This plugin allows a user to see block level elements in the editable area. It is similar to WYSIWYG hidden character functionality, but at block level. It also adds a toolbar button and a menu item Show blocks
under the View
menu dropdown.
Basic setup
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'visualblocks',
toolbar: 'visualblocks'
});
Options
Toolbar buttons
The Visual Blocks plugin provides the following toolbar buttons:
Toolbar button identifier | Description |
---|---|
|
Toggles the visibility of block elements. |
These toolbar buttons can be added to the editor using:
-
The
toolbar
configuration option. -
The
quickbars_insert_toolbar
configuration option.
Menu items
The Visual Blocks plugin provides the following menu items:
Menu item identifier | Default Menu Location | Description |
---|---|---|
|
View |
Toggles block visibility on/off. |
These menu items can be added to the editor using:
-
The
menu
configuration option. -
The
contextmenu
configuration option.