uses TML color syntax to be compatible with WYSIWYG
authorColas Nahaboo <colas@nahaboo.net>
Tue, 14 Apr 2009 00:28:12 +0200
changeset 5ca591a51bacd
parent 4 2010c4eb8927
child 6 18d1c8d35def
uses TML color syntax to be compatible with WYSIWYG
pub/System/SmartEditContrib/wikismartActions.js
     1.1 --- a/pub/System/SmartEditContrib/wikismartActions.js	Tue Apr 14 00:25:24 2009 +0200
     1.2 +++ b/pub/System/SmartEditContrib/wikismartActions.js	Tue Apr 14 00:28:12 2009 +0200
     1.3 @@ -1983,8 +1983,8 @@
     1.4  
     1.5  function wikismartInsertSmartColor(smartColor){
     1.6  	
     1.7 -	var sstagBeg = "<span class=\""+smartColor+"\">";
     1.8 -	var sstagEnd = "</span>";
     1.9 +	var sstagBeg = "%"+smartColor.toUpperCase()+"%";
    1.10 +	var sstagEnd = "%ENDCOLOR%";
    1.11  	var tstoadd = sstagBeg+wikismartSelection+sstagEnd;
    1.12  	
    1.13  	
    1.14 @@ -2016,4 +2016,4 @@
    1.15  	}
    1.16  	
    1.17  	
    1.18 -}
    1.19 \ No newline at end of file
    1.20 +}