mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-15 15:16:29 +01:00
6547731cfe
Merges [43447] to the 4.9 branch. Fixes #44134. Built from https://develop.svn.wordpress.org/branches/4.9@43472 git-svn-id: http://core.svn.wordpress.org/branches/4.9@43299 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
903 B
JavaScript
40 lines
903 B
JavaScript
(function () {
|
|
var hr = (function () {
|
|
'use strict';
|
|
|
|
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
|
|
var register = function (editor) {
|
|
editor.addCommand('InsertHorizontalRule', function () {
|
|
editor.execCommand('mceInsertContent', false, '<hr />');
|
|
});
|
|
};
|
|
var $_cqh592cnjjgwebvk = { register: register };
|
|
|
|
var register$1 = function (editor) {
|
|
editor.addButton('hr', {
|
|
icon: 'hr',
|
|
tooltip: 'Horizontal line',
|
|
cmd: 'InsertHorizontalRule'
|
|
});
|
|
editor.addMenuItem('hr', {
|
|
icon: 'hr',
|
|
text: 'Horizontal line',
|
|
cmd: 'InsertHorizontalRule',
|
|
context: 'insert'
|
|
});
|
|
};
|
|
var $_13g834cojjgwebvl = { register: register$1 };
|
|
|
|
global.add('hr', function (editor) {
|
|
$_cqh592cnjjgwebvk.register(editor);
|
|
$_13g834cojjgwebvl.register(editor);
|
|
});
|
|
function Plugin () {
|
|
}
|
|
|
|
return Plugin;
|
|
|
|
}());
|
|
})();
|