X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=webcit%2Ftiny_mce%2Fplugins%2Fadvimage%2Feditor_plugin_src.js;h=d2678cbcf2ed8b5fa3cbc9a5fa9d0aab05f73fd2;hb=eb5fb3f6c3b3e1d4d3d7ebbb92b8c60d70d13254;hp=0b96fd641d3d5accb7e6c4e5d6e0e63d56d06f73;hpb=56d69e5d8434e98835a2582c59b771ba69475431;p=citadel.git diff --git a/webcit/tiny_mce/plugins/advimage/editor_plugin_src.js b/webcit/tiny_mce/plugins/advimage/editor_plugin_src.js index 0b96fd641..d2678cbcf 100644 --- a/webcit/tiny_mce/plugins/advimage/editor_plugin_src.js +++ b/webcit/tiny_mce/plugins/advimage/editor_plugin_src.js @@ -1,5 +1,11 @@ -/* - * Copyright © 2004-2008, Moxiecode Systems AB, All rights reserved. +/** + * editor_plugin_src.js + * + * Copyright 2009, Moxiecode Systems AB + * Released under LGPL License. + * + * License: http://tinymce.moxiecode.com/license + * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { @@ -8,7 +14,7 @@ // Register commands ed.addCommand('mceAdvImage', function() { // Internal image object like a flash placeholder - if (ed.dom.getAttrib(ed.selection.getNode(), 'class').indexOf('mceItem') != -1) + if (ed.dom.getAttrib(ed.selection.getNode(), 'class', '').indexOf('mceItem') != -1) return; ed.windowManager.open({ @@ -41,4 +47,4 @@ // Register plugin tinymce.PluginManager.add('advimage', tinymce.plugins.AdvancedImagePlugin); -})(); +})(); \ No newline at end of file