[svn r21769] FS#2867 - The FCKEditor: Modification of the "__flash__removeCallback" patch and other minor corrections.

skala
Ivan Tcholakov 16 years ago
parent 61ac4c8e79
commit 8ac80007b0
  1. 7
      main/inc/lib/fckeditor/editor/dialog/fck_flash/fck_flash_preview.html
  2. 7
      main/inc/lib/fckeditor/editor/plugins/audio/fck_audio_playback.html
  3. 7
      main/inc/lib/fckeditor/editor/plugins/flvPlayer/flvPlayer.js
  4. 1
      main/inc/lib/fckeditor/editor/plugins/youtube/youtube.js
  5. 7
      main/inc/lib/fckeditor/editor/plugins/youtube/youtube_preview.html

@ -47,13 +47,16 @@ window.onload = function()
// This is a patch for the "__flash__removeCallback" bug, see FS#4378.
function ClearPreviewElement()
{
if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
if ( ( navigator.userAgent.toLowerCase().indexOf( 'msie' ) != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
{
if ( document.body.firstChild )
{
try
{
document.body.removeChild( document.body.firstChild ) ;
while ( document.body.firstChild )
{
document.body.removeChild( document.body.firstChild ) ;
}
}
catch ( ex )
{

@ -48,13 +48,16 @@ window.onload = function()
// This is a patch for the "__flash__removeCallback" bug, see FS#4378.
function ClearPreviewElement()
{
if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
if ( ( navigator.userAgent.toLowerCase().indexOf( 'msie' ) != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
{
if ( document.body.firstChild )
{
try
{
document.body.removeChild( document.body.firstChild ) ;
while ( document.body.firstChild )
{
document.body.removeChild( document.body.firstChild ) ;
}
}
catch ( ex )
{

@ -29,16 +29,21 @@ if ( FCKConfig.MediaUpload )
dialog.AddTab( 'Upload', FCKLang.DlgLnkUpload ) ;
}
// This function is called when a dialog tag has been selected.
// This function is called when a dialog tab has been selected.
function OnDialogTabChange( tabCode )
{
ShowE( 'divInfo', ( tabCode == 'Info' ) ) ;
ShowE( 'divPreview', ( tabCode == 'Preview' ) ) ;
ShowE( 'divUpload', ( tabCode == 'Upload' ) ) ;
if ( tabCode == 'Preview' )
{
UpdatePreview() ;
}
else
{
ClearPreview() ;
}
}
function OnDialogModeChange( mode )

@ -39,6 +39,7 @@ dialog.AddTab( 'Preview', FCKLang.DlgImgPreview ) ;
function OnDialogTabChange( tabCode )
{
ShowE( 'divInfo', ( tabCode == 'Info' ) ) ;
ShowE( 'divPreview', ( tabCode == 'Preview' ) ) ;
if ( tabCode == 'Preview' )
{

@ -49,13 +49,16 @@ window.onload = function()
//This is a patch for the "__flash__removeCallback" bug, see FS#4378.
function ClearPreviewElement()
{
if ( ( navigator.userAgent.toLowerCase().indexOf('msie') != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
if ( ( navigator.userAgent.toLowerCase().indexOf( 'msie' ) != -1 ) && ( navigator.userAgent.toLowerCase().indexOf( 'opera' ) == -1 ) )
{
if ( document.body.firstChild )
{
try
{
document.body.removeChild( document.body.firstChild ) ;
while ( document.body.firstChild )
{
document.body.removeChild( document.body.firstChild ) ;
}
}
catch ( ex )
{

Loading…
Cancel
Save