Changes between Version 2 and Version 3 of Ticket #9810, comment 4
- Timestamp:
- Jun 24, 2013, 6:13:27 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #9810, comment 4
v2 v3 3 3 var editor = CKEDITOR.replace( 'editor1' ); 4 4 5 5 editor.on('pluginsLoaded', function( evt ){ //works on initial code and when switching from source to wysiwyg, 6 6 evt.editor.dataProcessor.dataFilter.addRules({ 7 elements :{ 8 span : function( element ) { 9 if(element.parent.name === 'a'){ 10 delete element.name; 11 } 12 } 13 } 14 }); 15 }); 7 elements :{ 8 span : function( element ) { 9 if(element.parent.name === 'a'){ 10 delete element.name; 11 } 12 } 13 }); 14 }); 16 15 17 16 }}}