2014-03-06 01:54:14 +01:00
|
|
|
/**
|
|
|
|
* plugin.js
|
|
|
|
*
|
|
|
|
* Released under LGPL License.
|
2015-07-01 02:52:25 +02:00
|
|
|
* Copyright (c) 1999-2015 Ephox Corp. All rights reserved
|
2014-03-06 01:54:14 +01:00
|
|
|
*
|
|
|
|
* License: http://www.tinymce.com/license
|
|
|
|
* Contributing: http://www.tinymce.com/contributing
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*global tinymce:true */
|
|
|
|
|
|
|
|
tinymce.PluginManager.add('hr', function(editor) {
|
|
|
|
editor.addCommand('InsertHorizontalRule', function() {
|
|
|
|
editor.execCommand('mceInsertContent', false, '<hr />');
|
|
|
|
});
|
|
|
|
|
|
|
|
editor.addButton('hr', {
|
|
|
|
icon: 'hr',
|
|
|
|
tooltip: 'Horizontal line',
|
|
|
|
cmd: 'InsertHorizontalRule'
|
|
|
|
});
|
|
|
|
|
|
|
|
editor.addMenuItem('hr', {
|
|
|
|
icon: 'hr',
|
|
|
|
text: 'Horizontal line',
|
|
|
|
cmd: 'InsertHorizontalRule',
|
|
|
|
context: 'insert'
|
|
|
|
});
|
|
|
|
});
|