Changeset 672
- Timestamp:
- 06/17/10 00:44:54 (2 years ago)
- Location:
- trunk/src/wymeditor
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.mozilla.js
r660 r672 252 252 WYMeditor.WymClassMozilla.prototype.openBlockTag = function(tag, attributes) 253 253 { 254 var attributes = this.validator.getValidTagAttributes(tag, attributes); 255 256 // Handle Mozilla styled spans 257 if(tag == 'span' && attributes.style){ 258 var new_tag = this.getTagForStyle(attributes.style); 259 if(new_tag){ 260 this._tag_stack.pop(); 261 var tag = new_tag; 262 this._tag_stack.push(new_tag); 263 attributes.style = ''; 264 }else{ 265 return; 266 } 267 } 268 269 this.output += this.helper.tag(tag, attributes, true); 254 var attributes = this.validator.getValidTagAttributes(tag, attributes); 255 256 // Handle Mozilla styled spans 257 if (tag == 'span' && attributes.style) { 258 var new_tag = this.getTagForStyle(attributes.style); 259 if (new_tag) { 260 tag = new_tag; 261 this._tag_stack.pop(); 262 this._tag_stack.push(tag); 263 attributes.style = ''; 264 } 265 } 266 267 this.output += this.helper.tag(tag, attributes, true); 270 268 }; 271 269 -
trunk/src/wymeditor/jquery.wymeditor.safari.js
r654 r672 219 219 WYMeditor.WymClassSafari.prototype.openBlockTag = function(tag, attributes) 220 220 { 221 var attributes = this.validator.getValidTagAttributes(tag, attributes); 222 223 // Handle Safari styled spans 224 if(tag == 'span' && attributes.style) { 225 var new_tag = this.getTagForStyle(attributes.style); 226 if(new_tag){ 227 this._tag_stack.pop(); 228 var tag = new_tag; 229 this._tag_stack.push(new_tag); 230 attributes.style = ''; 231 232 //should fix #125 - also removed the xhtml() override 233 if(typeof attributes['class'] == 'string') 234 attributes['class'] = attributes['class'].replace(/apple-style-span/gi, ''); 235 236 } else { 237 return; 238 } 239 } 240 241 this.output += this.helper.tag(tag, attributes, true); 221 var attributes = this.validator.getValidTagAttributes(tag, attributes); 222 223 // Handle Safari styled spans 224 if (tag == 'span' && attributes.style) { 225 var new_tag = this.getTagForStyle(attributes.style); 226 if (new_tag) { 227 tag = new_tag; 228 this._tag_stack.pop(); 229 this._tag_stack.push(tag); 230 attributes.style = ''; 231 232 // Should fix #125 - also removed the xhtml() override 233 if(typeof attributes['class'] == 'string') { 234 attributes['class'] = attributes['class'].replace(/apple-style-span/gi, ''); 235 } 236 } 237 } 238 239 this.output += this.helper.tag(tag, attributes, true); 242 240 }; 243 241
Note: See TracChangeset
for help on using the changeset viewer.