[ Index ]

PHP Cross Reference of WordPress

title

Body

[close]

/wp-includes/js/tinymce/plugins/hr/ -> plugin.js (source)

   1  (function () {
   2  var hr = (function () {
   3      'use strict';
   4  
   5      var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
   6  
   7      var register = function (editor) {
   8        editor.addCommand('InsertHorizontalRule', function () {
   9          editor.execCommand('mceInsertContent', false, '<hr />');
  10        });
  11      };
  12      var Commands = { register: register };
  13  
  14      var register$1 = function (editor) {
  15        editor.addButton('hr', {
  16          icon: 'hr',
  17          tooltip: 'Horizontal line',
  18          cmd: 'InsertHorizontalRule'
  19        });
  20        editor.addMenuItem('hr', {
  21          icon: 'hr',
  22          text: 'Horizontal line',
  23          cmd: 'InsertHorizontalRule',
  24          context: 'insert'
  25        });
  26      };
  27      var Buttons = { register: register$1 };
  28  
  29      global.add('hr', function (editor) {
  30        Commands.register(editor);
  31        Buttons.register(editor);
  32      });
  33      function Plugin () {
  34      }
  35  
  36      return Plugin;
  37  
  38  }());
  39  })();


Generated: Sun Dec 22 01:00:02 2024 Cross-referenced by PHPXref 0.7.1