4 * Released under LGPL License.
5 * Copyright (c) 1999-2015 Ephox Corp. All rights reserved
7 * License: http://www.tinymce.com/license
8 * Contributing: http://www.tinymce.com/contributing
11 /*global tinymce:true */
13 tinymce.PluginManager.add('hr', function(editor) {
14 editor.addCommand('InsertHorizontalRule', function() {
15 editor.execCommand('mceInsertContent', false, '<hr />');
18 editor.addButton('hr', {
20 tooltip: 'Horizontal line',
21 cmd: 'InsertHorizontalRule'
24 editor.addMenuItem('hr', {
26 text: 'Horizontal line',
27 cmd: 'InsertHorizontalRule',