Browse Source

[svn r17386] FS#2867 - FCKEditor: Fkae image support for the new plugin (unfinished).

Ivan Tcholakov 16 years ago
parent
commit
7e61beeb99
1 changed files with 8 additions and 0 deletions
  1. 8 0
      main/inc/lib/fckeditor/editor/plugins/youtube/youtube.js

+ 8 - 0
main/inc/lib/fckeditor/editor/plugins/youtube/youtube.js

@@ -23,6 +23,14 @@ dialog.AddTab( 'Info', oEditor.FCKLang.DlgInfoTab ) ;
 var oFakeImage = FCK.Selection.GetSelectedElement() ;
 var oEmbed ;
 
+if ( oFakeImage )
+{
+	if ( oFakeImage.tagName == 'IMG' && oFakeImage.getAttribute('_fckvideo') )
+		oEmbed = FCK.GetRealElement( oFakeImage ) ;
+	else
+		oFakeImage = null ;
+}
+
 window.onload = function()
 {
 	// Translate the dialog box texts.