[sIFR3-dev] Fwd: Random line-breaks

Mark Wubben mark at novemberborn.net
Sat Jul 8 16:34:18 GMT 2006


On Jul 8, 2006, at 8:56 AM, Fredrik Bränström wrote:
> Off topic: I added
>        contentObj.content = contentObj.content.toUpperCase();
> below
>        var contentObj = handleContent(contentNode);
> to accomodate for a font that needed to be all caps... but could it  
> be made into an option instead? I can't seem to accomplish it by CSS.

You can use the `modifyContent()` method (introduced somewhere in the  
nigthlies) to do this. Just refer to it in the arguments to the  
replacement function (`modifyContent: function(node) { ... },'). I'ts  
passed a copy of the element you are replacing, and by iterating over  
it using DOM methods, or just plain innerHTML, you can change the  
text going to the Flash.
--
Mark Wubben
http://novemberborn.net/





More information about the sifr3-dev mailing list