[svn r17462] FS#2867 - FCKEditor: Managing a case where Image Manager should be activated instead of Image Properties dialog.

skala
Ivan Tcholakov 17 years ago
parent 79d796af0c
commit 962985bf48
  1. 8
      main/inc/lib/fckeditor/editor/plugins/ImageManager/fckplugin.js

@ -67,11 +67,17 @@
var image = FCK.Selection.GetSelectedElement() ;
if ( image )
{
if ( image.nodeName.IEquals( 'img' ) )
// Checking whether the selected object is a real image.
if ( image.nodeName.IEquals( 'img' ) &&
!image.getAttribute( '_fckfakelement' ) &&
!image.getAttribute( '_fckflash' ) &&
!image.getAttribute( '_fckmp3' ) &&
!image.getAttribute( '_fckvideo' ) )
{
FCKCommands.GetCommand( 'Image' ).Execute() ;
return ;
}
// For other kinds of objects Image Manager should be activated to replace them.
}
var wArgs = {};

Loading…
Cancel
Save