mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-06 04:38:05 +02:00
https://github.com/tinymce/tinymce-dist/compare/4.8.0...4.9.2 Fixes #46094. Built from https://develop.svn.wordpress.org/trunk@44713 git-svn-id: http://core.svn.wordpress.org/trunk@44544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
40 lines
919 B
JavaScript
40 lines
919 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 Commands = { 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 Buttons = { register: register$1 };
|
|
|
|
global.add('hr', function (editor) {
|
|
Commands.register(editor);
|
|
Buttons.register(editor);
|
|
});
|
|
function Plugin () {
|
|
}
|
|
|
|
return Plugin;
|
|
|
|
}());
|
|
})();
|