Changes between Version 2 and Version 3 of Ticket #9810, comment 4


Ignore:
Timestamp:
Jun 24, 2013, 6:13:27 AM (11 years ago)
Author:
Jakub Ś
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9810, comment 4

    v2 v3  
    33var editor = CKEDITOR.replace( 'editor1' );             
    44
    5                                         editor.on('pluginsLoaded',  function( evt ){ //works on initial code and when switching from source to wysiwyg,
     5editor.on('pluginsLoaded',  function( evt ){ //works on initial code and when switching from source to wysiwyg,
    66                                                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});             
    1615
    1716}}}
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy