CoreFiles by mySites.guru
plugin.js39 lines, 919 bytes, from wordpress-5.9.zip
Raw History Compare with 5.8.19
md5
a40ec96b2b25c1356c33e6c1212db9b3
sha1
1e537f3c56f8f781e569a2bf84ff2ecb217ed272
sha256
257a8af0f16d52aadf6348c6caefa64ecf5683910b19bc718b652e9edf3e809e
(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;

}());
})();

The same content is in 594 releases, WordPress 5.1-beta3 to 7.2-beta5. See them all, or every version of this file.