CoreFiles by mySites.guru
plugin.js39 lines, 903 bytes, from wordpress-5.0.13.zip
Raw History Compare with 5.0.12
md5
fd7ae993f8817e35a0caabd6c0744ac0
sha1
58dd540c30dde5a531ff9ff57ba25741c95dd1b0
sha256
1000ce6ef578f79708aa83251c45466abe2b5d787844db78572e400a92efb732
(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;

}());
})();

The same content is in 78 releases, WordPress 4.9.8-beta1 to 5.1-beta2. See them all, or every version of this file.