Horizontal Rule plugin
Insert a horizontal line.
Contribute to this pageThe Horizontal Rule (hr
) plugin allows a user to insert a horizontal rule on the page at the cursor insertion point. It also adds a toolbar button and a menu item Horizontal line
under the Insert
menu.
Basic setup
tinymce.init({
selector: 'textarea', // change this value according to your HTML
plugins: 'hr',
toolbar: 'hr'
});
Toolbar buttons
The Horizontal Rule plugin provides the following toolbar buttons:
Toolbar button identifier | Description |
---|---|
hr | Inserts a horizontal rule into the editor. |
These toolbar buttons can be added to the editor using:
- The
toolbar
configuration option. - The
quickbars_insert_toolbar
configuration option. - Custom Context toolbars.
Menu items
The Horizontal Rule plugin provides the following menu items:
Menu item identifier | Default Menu Location | Description |
---|---|---|
hr | Insert | Inserts a horizontal rule into the editor. |
These menu items can be added to the editor using:
- The
menu
configuration option. - The
contextmenu
configuration option. - Custom Menu toolbar buttons.
Was this article helpful? Yes - No
Well, that's awkward . Would you mind opening an issue or helping us out?
Thanks for the feedback!
Can't find what you're looking for? Let us know.
Except as otherwise noted, the content of this page is licensed under the Creative Commons BY-NC-SA 3.0 License, and code samples are licensed under the Apache 2.0 License.