[webkit-dev] Web Editing and FontManager

Rob Burns robburns1 at mac.com
Tue Sep 5 15:06:53 PDT 2006

Hello all,

I'm trying to understand how the FontManager interfaces with WebView.  
to alter the behavior and replicate in other ways. Does anyone know  
how FontManager doe s its magic with WebView? What methods are  
called, etc.? Looking at Blot.app for example, the "Bold" menu item  
targets FontManager addFontTrait method. After that how does the  
WebView end up inserting " <SPAN class="Apple-style-span" style="font- 
weight: bold;"></SPAN>" wrapped around the selectedDOMRange? I  
imagine much of this happens in the black-box of the FontManager, but  
what method finally get called in the WebKit APIs?

Any pointers would be appreciated.

Best wishes,

More information about the webkit-dev mailing list