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.AdvancedImagePlugin', {
\r
13 init : function(ed, url) {
\r
14 // Register commands
\r
15 ed.addCommand('mceAdvImage', function() {
\r
16 // Internal image object like a flash placeholder
\r
17 if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1)
\r
20 ed.windowManager.open({
\r
21 file : url + '/image.htm',
\r
22 width : 480 + parseInt(ed.getLang('advimage.delta_width', 0)),
\r
23 height : 385 + parseInt(ed.getLang('advimage.delta_height', 0)),
\r
31 ed.addButton('image', {
\r
32 title : 'advimage.image_desc',
\r
37 getInfo : function() {
\r
39 longname : 'Advanced image',
\r
40 author : 'Moxiecode Systems AB',
\r
41 authorurl : 'http://tinymce.moxiecode.com',
\r
42 infourl : 'http://wiki.moxiecode.com/index.php/TinyMCE:Plugins/advimage',
\r
43 version : tinymce.majorVersion + "." + tinymce.minorVersion
\r
49 tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin);
\r