Ticket #2962: 2962.patch

File 2962.patch, 1.6 KB (added by Martin Kou, 14 years ago)
  • _source/plugins/link/dialogs/link.js

     
    128128                        // IE BUG: target attribute is an empty string instead of null in IE if it's not set.
    129129                        if ( !target )
    130130                        {
    131                                 var onclick = element.getAttribute( '_cke_saved_onclick' ) || element.getAttribute( 'onclick' ),
     131                                var onclick = element.getAttribute( '_cke_pa_onclick' ) || element.getAttribute( 'onclick' ),
    132132                                        onclickMatch = onclick && onclick.match( popupRegex );
    133133                                if ( onclickMatch )
    134134                                {
     
    10571057                                        addFeature( 'top' );
    10581058
    10591059                                        onclickList.push( featureList.join( ',' ), '\'); return false;' );
    1060                                         attributes._cke_saved_onclick = onclickList.join( '' );
     1060                                        attributes._cke_pa_onclick = onclickList.join( '' );
    10611061                                }
    10621062                                else
    10631063                                {
    10641064                                        if ( data.target.type != 'notSet' && data.target.name )
    10651065                                                attributes.target = data.target.name;
    1066                                         removeAttributes.push( '_cke_saved_onclick', 'onclick' );
     1066                                        removeAttributes.push( '_cke_pa_onclick', 'onclick' );
    10671067                                }
    10681068                        }
    10691069
  • _source/core/htmlparser/element.js

     
    1919        if ( attributes._cke_saved_href )
    2020                attributes.href = attributes._cke_saved_href;
    2121
     22        if ( attributes._cke_pa_onclick )
     23                attributes.onclick = attributes._cke_pa_onclick;
     24
    2225        /**
    2326         * The element name.
    2427         * @type String
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy