Ticket #2837: 2837.patch
File 2837.patch, 1.2 KB (added by , 16 years ago) |
---|
-
_source/plugins/styles/plugin.js
529 529 530 530 var getElement = function( style, targetDocument ) 531 531 { 532 var el = style._.element;533 534 if ( el )535 return el.clone();536 532 537 533 var def = style._.definition; 538 534 var variables = style._.variables; … … 540 536 var elementName = style.element; 541 537 var attributes = def.attributes; 542 538 var styles = def.styles; 539 540 // Create the element. 541 var el = ( style._.element = new CKEDITOR.dom.element( elementName, targetDocument ) ); 543 542 544 543 // The "*" element name will always be a span for this function. 545 544 if ( elementName == '*' ) … … 545 544 if ( elementName == '*' ) 546 545 elementName = 'span'; 547 546 548 // Create the element.549 el = new CKEDITOR.dom.element( elementName, targetDocument );550 551 547 // Assign all defined attributes. 552 548 if ( attributes ) 553 549 { … … 583 579 } 584 580 } 585 581 586 // Save the created element. It will be reused on future calls. 587 return ( style._.element = el ); 582 return style._.element; 588 583 }; 589 584 })(); 590 585