2017-05-08 07:32:46 +02:00
|
|
|
(function () {
|
2018-05-02 00:31:24 +02:00
|
|
|
var hr = (function () {
|
|
|
|
'use strict';
|
2017-05-08 07:32:46 +02:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
2017-05-08 07:32:46 +02:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
var register = function (editor) {
|
|
|
|
editor.addCommand('InsertHorizontalRule', function () {
|
|
|
|
editor.execCommand('mceInsertContent', false, '<hr />');
|
|
|
|
});
|
2017-05-08 07:32:46 +02:00
|
|
|
};
|
2018-07-17 12:04:26 +02:00
|
|
|
var $_cqh592cnjjgwebvk = { register: register };
|
2017-05-08 07:32:46 +02:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
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'
|
|
|
|
});
|
|
|
|
};
|
2018-07-17 12:04:26 +02:00
|
|
|
var $_13g834cojjgwebvl = { register: register$1 };
|
2017-05-08 07:32:46 +02:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
global.add('hr', function (editor) {
|
2018-07-17 12:04:26 +02:00
|
|
|
$_cqh592cnjjgwebvk.register(editor);
|
|
|
|
$_13g834cojjgwebvl.register(editor);
|
2018-05-02 00:31:24 +02:00
|
|
|
});
|
|
|
|
function Plugin () {
|
2017-05-08 07:32:46 +02:00
|
|
|
}
|
2014-03-06 01:54:14 +01:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
return Plugin;
|
2017-05-08 07:32:46 +02:00
|
|
|
|
2018-05-02 00:31:24 +02:00
|
|
|
}());
|
2017-05-08 07:32:46 +02:00
|
|
|
})();
|