Ticket #6791: 6791_4.patch

File 6791_4.patch, 675 bytes (added by Sa'ar Zac Elias, 14 years ago)
  • _source/core/editor_basic.js

     
    9898                        // Look for the element by id. We accept any kind of element here.
    9999                        element = document.getElementById( elementOrIdOrName );
    100100
     101                        // Elements that should go into head are unacceptable (#6791).
     102                        if ( element && element.tagName.toLowerCase() in {style:1,script:1,base:1,link:1,meta:1,title:1} )
     103                                element = null;
     104
    101105                        // If not found, look for elements by name. In this case we accept only
    102106                        // textareas.
    103107                        if ( !element )
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy