| 3 | | editor.on('pluginsLoaded', function(evt){ |
| 4 | | evt.editor.filter.addTransformations( [ |
| 5 | | [ |
| 6 | | { |
| 7 | | element: 'font', |
| 8 | | left: function( el ) { |
| 9 | | return el.name == 'font' && ( el.attributes.face || el.attributes.color ); |
| 10 | | }, |
| 11 | | right: function( el, tools ) { |
| 12 | | if( el.attributes.face ) { |
| 13 | | el.styles['font-family'] = el.attributes.face; |
| 14 | | delete el.attributes.face; |
| 15 | | } |
| | 3 | var editor = CKEDITOR.replace('textarea_id', {/*instance specific configuration*/}); |
| | 4 | |
| | 5 | editor.on('pluginsLoaded', function(evt){ |
| | 6 | evt.editor.filter.addTransformations( [ |
| | 7 | [ |
| | 8 | { |
| | 9 | element: 'font', |
| | 10 | left: function( el ) { |
| | 11 | return el.name == 'font' && ( el.attributes.face || el.attributes.color ); |
| | 12 | }, |
| | 13 | right: function( el, tools ) { |
| | 14 | if( el.attributes.face ) { |
| | 15 | el.styles['font-family'] = el.attributes.face; |
| | 16 | delete el.attributes.face; |
| | 17 | } |