[svn r17369] FS#2867 - FCKEditor: Resticting the Image manager not to activate on fake images.

skala
Ivan Tcholakov 16 years ago
parent 5193444026
commit 07a6aae400
  1. 10
      main/inc/lib/fckeditor/editor/plugins/ImageManager/fckplugin.js

@ -46,7 +46,15 @@
// Open the Placeholder dialog on double click.
function ImageManager_doubleClick (img) {
if ( img.tagName == 'IMG' ) FCKCommands.GetCommand( 'ImageManager' ).Execute() ;
//if ( img.tagName == 'IMG' ) FCKCommands.GetCommand( 'ImageManager' ).Execute() ;
if ( img.tagName == 'IMG' &&
!img.getAttribute( '_fckfakelement' ) &&
!img.getAttribute( '_fckflash' ) &&
!img.getAttribute( '_fckmp3' ) &&
!img.getAttribute( '_fckvideo' ) )
{
FCKCommands.GetCommand( 'ImageManager' ).Execute() ;
}
}
FCK.RegisterDoubleClickHandler( ImageManager_doubleClick, 'IMG' ) ;

Loading…
Cancel
Save