Ticket #4107: 4107_2.patch
File 4107_2.patch, 1.5 KB (added by , 14 years ago) |
---|
-
_tests/dt/plugins/styles/styles.html
427 427 assert.isTrue( style.checkElementRemovable( element, true ) ); 428 428 }, 429 429 430 test_checkElementRemovable_fontFamily : function() 431 { 432 var element = CKEDITOR.dom.element.createFromHtml( '<span style="font-family: georgia, serif">Test Font</span>', doc ); 433 434 var style = new CKEDITOR.style( { element : 'span', styles : { 'font-family' : '#(family)' } }, { family : 'Georgia, serif;' } ); 435 436 assert.isTrue( style.checkElementRemovable( element, true ) ); 437 }, 438 430 439 test_ticket_3091 : function() 431 440 { 432 441 var element = doc.getById( '_P1' ); … … 583 592 assert.areSame( '<p> paragraph1 paragraph1<br />paragraph2</p><p> para graph3</p>', 584 593 result ); 585 594 }, 595 596 586 597 name : document.title 587 598 }; 588 599 })() ); -
_source/plugins/styles/plugin.js
1200 1200 // Compensate tail semi-colon. 1201 1201 return styleText.replace( /\s*([;:])\s*/, '$1' ) 1202 1202 .replace( /([^\s;])$/, '$1;') 1203 .replace( /,\s+/g, ',' ) // Trimming spaces after comma (e.g. font-family name)(#4107). 1203 1204 .toLowerCase(); 1204 1205 } 1205 1206