Ticket #3632: 3632.patch

File 3632.patch, 1.1 KB (added by Artur Formella, 15 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    2121                ]
    2222        };
    2323
     24        /**
     25         * IE sucks with dynamic 'name' attribute after element is created, '_cke_saved_name' is used instead for this attribute.
     26         */
     27        var removeName = function( element )
     28        {
     29                var attribs = element.attributes;
     30
     31                if ( attribs._cke_saved_name )
     32                        delete attribs.name;
     33        };
     34
    2435        var defaultHtmlFilterRules =
    2536                {
    2637                        elementNames :
     
    7283                                                delete attribs.href;
    7384                                },
    7485
    75                                 /**
    76                                  * IE sucks with dynamic 'name' attribute after element is created, '_cke_saved_name' is used instead for this attribute.
    77                                  */
    78                                 input : function( element )
    79                                 {
    80                                         var attribs = element.attributes;
    81 
    82                                         if ( attribs._cke_saved_name )
    83                                                 delete attribs.name;
    84                                 }
     86                                input : removeName,
     87                                form : removeName
    8588                        },
    8689
    8790                        attributes :
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy