2 * editor_plugin_src.js
\r
4 * Copyright 2009, Moxiecode Systems AB
\r
5 * Released under LGPL License.
\r
7 * License: http://tinymce.moxiecode.com/license
\r
8 * Contributing: http://tinymce.moxiecode.com/contributing
\r
12 tinymce.create('tinymce.plugins.AdvancedHRPlugin', {
\r
13 init : function(ed, url) {
\r
14 // Register commands
\r
15 ed.addCommand('mceAdvancedHr', function() {
\r
16 ed.windowManager.open({
\r
17 file : url + '/rule.htm',
\r
18 width : 250 + parseInt(ed.getLang('advhr.delta_width', 0)),
\r
19 height : 160 + parseInt(ed.getLang('advhr.delta_height', 0)),
\r
27 ed.addButton('advhr', {
\r
28 title : 'advhr.advhr_desc',
\r
29 cmd : 'mceAdvancedHr'
\r
32 ed.onNodeChange.add(function(ed, cm, n) {
\r
33 cm.setActive('advhr', n.nodeName == 'HR');
\r
36 ed.onClick.add(function(ed, e) {
\r
39 if (e.nodeName === 'HR')
\r
40 ed.selection.select(e);
\r
44 getInfo : function() {
\r
46 longname : 'Advanced HR',
\r
47 author : 'Moxiecode Systems AB',
\r
48 authorurl : 'http://tinymce.moxiecode.com',
\r
49 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advhr',
\r
50 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
56 tinymce.PluginManager.add('advhr', tinymce.plugins.AdvancedHRPlugin);
\r