2 * Plone image plugin based on advimage plugin.
8 tinymce
.create('tinymce.plugins.PloneImagePlugin', {
9 init : function(ed
, url
) {
11 ed
.addCommand('mcePloneImage', function() {
12 // Internal image object like a flash placeholder
13 if (ed
.dom
.getAttrib(ed
.selection
.getNode(), 'class').indexOf('mceItem') != -1)
16 ed
.windowManager
.open({
17 file
: url
+ '/ploneimage.htm',
18 width
: 820 + parseInt(ed
.getLang('ploneimage.delta_width', 0)),
19 height
: 500 + parseInt(ed
.getLang('ploneimage.delta_height', 0)),
27 ed
.addButton('image', {
28 title
: 'advanced.image_desc',
33 getInfo : function() {
35 longname
: 'Plone image',
36 author
: 'Rob Gietema',
37 authorurl
: 'http://plone.org',
38 infourl
: 'http://plone.org/products/tinymce',
39 version
: tinymce
.majorVersion
+ "." + tinymce
.minorVersion
45 tinymce
.PluginManager
.add('ploneimage', tinymce
.plugins
.PloneImagePlugin
);