- Timestamp:
- 2013-01-15T23:15:34+13:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
gs3-extensions/html-to-expeditee/trunk/src/src/js/html-to-expeditee.js
r26728 r26729 6 6 var font_color; 7 7 var font_weight; 8 var font_style; 8 9 9 10 Element.prototype.getElementWidth = function() { … … 161 162 162 163 var new_font_weight = getStyle(parent,"font-weight"); 164 var new_font_style = getStyle(parent,"font-style"); 163 165 164 166 if(new_font_family !== undefined && new_font_family !== null) … … 173 175 if(new_font_weight !== undefined && new_font_weight !== null) 174 176 font_weight = new_font_weight; 177 178 if(new_font_style !== undefined && new_font_style !== null) 179 font_style = new_font_style; 175 180 176 181 var data = parent.attributes["data"]; … … 185 190 style["color"] = font_color; 186 191 style["font-weight"] = font_weight; 192 style["font-style"] = font_style; 187 193 188 194 //TODO: if parent node is a <b> element, then set style["font-weight"] to be "bold".
Note:
See TracChangeset
for help on using the changeset viewer.