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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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> 
Note: See TracChangeset for help on using the changeset viewer.