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