浏览代码

[svn r17389] FS#2867 - FCKEditor: Preventing false activation of the Flash dialog.

Ivan Tcholakov 16 年之前
父节点
当前提交
1cc6e02127
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js

+ 4 - 2
main/inc/lib/fckeditor/editor/plugins/customizations/fckplugin.js

@@ -482,7 +482,7 @@ FCK.is_video = function ( tag )
 				var flashvars = FCKDomTools.GetAttributeValue( tag, 'flashvars' ) ;
 				flashvars = flashvars ? flashvars.toLowerCase() : '' ;
 
-				if (  /\.(mpg|mpeg|avi|wmv|mov|asf|flv)/i.test( flashvars ) )
+				if ( /\.(mpg|mpeg|avi|wmv|mov|asf|flv)/i.test( flashvars ) )
 				{
 					return true ;
 				}
@@ -587,7 +587,9 @@ FCK.ContextMenu.RegisterListener( {
 FCK.RegisterDoubleClickHandler(
 	function ( tag )
 	{
-		if ( tag.tagName == 'IMG' && tag.getAttribute( '_fckflash' ) )
+		if ( tag.tagName == 'IMG' && tag.getAttribute( '_fckflash' ) &&
+			!tag.getAttribute( '_fckmp3' ) &&
+			!tag.getAttribute( '_fckvideo' ) )
 		{
 			FCKCommands.GetCommand( 'Flash' ).Execute() ;
 		}