- Timestamp:
- 2013-01-15T22:49:23+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
r26726 r26728 5 5 var font_size; 6 6 var font_color; 7 var font_weight; 7 8 8 9 Element.prototype.getElementWidth = function() { … … 159 160 var new_font_color = getStyle(parent,"color"); 160 161 162 var new_font_weight = getStyle(parent,"font-weight"); 163 161 164 if(new_font_family !== undefined && new_font_family !== null) 162 165 font_family = new_font_family; … … 167 170 if(new_font_color !== undefined && new_font_color !== null) 168 171 font_color = new_font_color; 172 173 if(new_font_weight !== undefined && new_font_weight !== null) 174 font_weight = new_font_weight; 169 175 170 176 var data = parent.attributes["data"]; … … 173 179 jsonNode.data = data.value; 174 180 } 175 jsonNode.style = style; 176 } 177 } 178 181 179 182 var style = {}; 180 183 style["font-family"] = font_family; 181 184 style["font-size"] = font_size; 182 185 style["color"] = font_color; 186 style["font-weight"] = font_weight; 187 188 //TODO: if parent node is a <b> element, then set style["font-weight"] to be "bold". 189 190 jsonNode.style = style; 191 } 192 } 193 194 183 195 184 196 }
Note:
See TracChangeset
for help on using the changeset viewer.