Changeset 6429


Ignore:
Timestamp:
02/19/10 01:51:31 (2 years ago)
Author:
PaulHarvey
Message:

Item8566: Accommodate ZonePlugin shenanigans: <meta .../> should be added to the head, not body! This killed TinyMCEPlugin for IE users who run the latest JQueryPlugin+ZonePlugin.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/Release01x00/TinyMCEPlugin/data/System/TinyMCEPlugin.txt

    r5880 r6429  
    168168|  Release: | %$RELEASE% | 
    169169|  Change History: | <!-- versions below in reverse order -->&nbsp; | 
     170|  19 Feb 2010 | Foswikitask:Item8566: Fix for sites with latest JQueryPlugin where IE users get: "Unable to install !TinyMCE; &lt;META..." | 
    170171|  29 Dec 2009 | Foswikitask:Item2447: Fix unable to apply "Normal" format in some browsers (notes added to System topic)<br/> Foswikitask:Item1462: Block attachments to unsaved AUTOINC topics | 
    171172|  25 Nov 2009 | Foswikitask:Item2412: Inserting images - fixed a problem where it wasn't easy (impossible unless > 1 attachments) to select the first image in the attachment list; improved layout of dialog window where preview obscures insert/cancel buttons. | 
  • branches/Release01x00/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin.pm

    r5860 r6429  
    1919 
    2020our $VERSION           = '$Rev$'; 
    21 our $RELEASE           = '29 Dec 2009'; 
     21our $RELEASE           = '19 Feb 2010'; 
    2222our $SHORTDESCRIPTION  = 'Integration of the Tiny MCE WYSIWYG Editor'; 
    2323our $NO_PREFS_IN_TOPIC = 1; 
     
    235235    #        but Foswiki::Func.pm does not expose that function, so plugins may not use it 
    236236    $encodedVersion =~ s/([^0-9a-zA-Z-_.:~!*'\/%])/'%'.sprintf('%02x',ord($1))/ge; 
     237 
     238    # SMELL: meta tag now in a separate addToHEAD for Item8566, due to 
     239    # addToZONE shenanigans. <meta> tags really do have to be in the head! 
     240    Foswiki::Func::addToHEAD( 'tinyMCE::Meta', <<SCRIPT); 
     241<meta name="TINYMCEPLUGIN_INIT" content="$metainit" /> 
     242SCRIPT 
     243 
    237244    Foswiki::Func::addToHEAD( 'tinyMCE', <<SCRIPT); 
    238 <meta name="TINYMCEPLUGIN_INIT" content="$metainit" /> 
    239245<script language="javascript" type="text/javascript" src="$tmceURL/tiny_mce$USE_SRC.js?v=$encodedVersion"></script> 
    240246<script language="javascript" type="text/javascript" src="$pluginURL/foswiki_tiny$USE_SRC.js?v=$encodedVersion"></script> 
  • trunk/TinyMCEPlugin/data/System/TinyMCEPlugin.txt

    r6243 r6429  
    179179|  Release: | %$RELEASE% | 
    180180|  Change History: | <!-- versions below in reverse order -->&nbsp; | 
     181|  19 Feb 2010 | Foswikitask:Item8566: Fix for sites with latest JQueryPlugin where IE users get: "Unable to install !TinyMCE; &lt;META..." | 
    181182|  24 Jan 2010 | Foswikitask:Item8416: add TINYMCEPLUGIN_ADDITIONAL_MCEPLUGINS and TINYMCEPLUGIN_BUTTONS(123) to allow wiki, web and topic specific plugins to be added [[Foswiki:Main.SvenDowideit][SD]] | 
    182183|  29 Dec 2009 | Foswikitask:Item2447: Fix unable to apply "Normal" format in some browsers (notes added to System topic)<br/> Foswikitask:Item1462: Block attachments to unsaved AUTOINC topics | 
  • trunk/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin.pm

    r6243 r6429  
    235235    #        but Foswiki::Func.pm does not expose that function, so plugins may not use it 
    236236    $encodedVersion =~ s/([^0-9a-zA-Z-_.:~!*'\/%])/'%'.sprintf('%02x',ord($1))/ge; 
     237 
     238    # SMELL: meta tag now in a separate addToHEAD for Item8566, due to 
     239    # addToZONE shenanigans. <meta> tags really do have to be in the head! 
     240    Foswiki::Func::addToHEAD( 'tinyMCE::Meta', <<SCRIPT); 
     241<meta name="TINYMCEPLUGIN_INIT" content="$metainit" /> 
     242SCRIPT 
     243 
    237244    Foswiki::Func::addToHEAD( 'tinyMCE', <<SCRIPT, 'JQUERYPLUGIN::FOSWIKI'); 
    238 <meta name="TINYMCEPLUGIN_INIT" content="$metainit" /> 
    239245<script language="javascript" type="text/javascript" src="$tmceURL/tiny_mce_jquery$USE_SRC.js?v=$encodedVersion"></script> 
    240246<script language="javascript" type="text/javascript" src="$pluginURL/foswiki_tiny$USE_SRC.js?v=$encodedVersion"></script> 
Note: See TracChangeset for help on using the changeset viewer.