Changeset 3957


Ignore:
Timestamp:
05/21/09 19:09:47 (3 years ago)
Author:
MichaelTempest
Message:

Item1534: Make the TT and COLOUR icons go shaded, even when TMCE applies the corresponding classes to elements that are not spans.

Also make build.pl work under "use strict;"

Location:
trunk/TinyMCEPlugin
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/TinyMCEPlugin/lib/Foswiki/Plugins/TinyMCEPlugin/build.pl

    r3944 r3957  
    1111use Foswiki::Contrib::Build; 
    1212 
    13 $build = new Foswiki::Contrib::Build( "TinyMCEPlugin" ); 
     13my $build = new Foswiki::Contrib::Build( "TinyMCEPlugin" ); 
    1414$build->build($build->{target}); 
    1515 
  • trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/editor_plugin.js

    r3795 r3957  
    99return null;},_nodeChange:function(ed,cm,n,co){if(n==null) 
    1010return;if(co){cm.setDisabled('tt',true);cm.setDisabled('colour',true);}else{cm.setDisabled('tt',false);cm.setDisabled('colour',false);} 
    11 var elm=ed.dom.getParent(n,'span.WYSIWYG_TT');if(elm!=null) 
     11var elm=ed.dom.getParent(n,'.WYSIWYG_TT');if(elm!=null) 
    1212cm.setActive('tt',true);else 
    13 cm.setActive('tt',false);elm=ed.dom.getParent(n,'span.WYSIWYG_COLOR');if(elm!=null) 
     13cm.setActive('tt',false);elm=ed.dom.getParent(n,'.WYSIWYG_COLOR');if(elm!=null) 
    1414cm.setActive('colour',true);else 
    1515cm.setActive('colour',false);if(ed.fw_lb){var puck=-1;var nn=n.nodeName.toLowerCase();do{for(var i=0;i<ed.fw_formats.length;i++){if((!ed.fw_formats[i].el||ed.fw_formats[i].el==nn)&&(!ed.fw_formats[i].style||ed.dom.hasClass(ed.fw_formats[i].style))){puck=i;if(puck>0) 
  • trunk/TinyMCEPlugin/pub/System/TinyMCEPlugin/tinymce/jscripts/tiny_mce/plugins/foswikibuttons/editor_plugin_src.js

    r3795 r3957  
    172172                        cm.setDisabled('colour', false); 
    173173                } 
    174             var elm = ed.dom.getParent(n, 'span.WYSIWYG_TT'); 
     174            var elm = ed.dom.getParent(n, '.WYSIWYG_TT'); 
    175175            if (elm != null) 
    176176                cm.setActive('tt', true); 
    177177                        else 
    178178                cm.setActive('tt', false); 
    179             elm = ed.dom.getParent(n, 'span.WYSIWYG_COLOR'); 
     179            elm = ed.dom.getParent(n, '.WYSIWYG_COLOR'); 
    180180            if (elm != null) 
    181181                cm.setActive('colour', true); 
Note: See TracChangeset for help on using the changeset viewer.