Ticket #6046: 6046.patch

File 6046.patch, 1.2 KB (added by Sa'ar Zac Elias, 14 years ago)
  • _source/core/dom/node.js

     
    666666                        {
    667667                                if ( current.type == CKEDITOR.NODE_ELEMENT )
    668668                                {
    669                                         if ( current.is ( 'body' ) )
     669                                        if ( current.is( 'body' ) || current.getCustomData( '_cke_lockedInput' ) )
    670670                                                break;
    671671
    672672                                        if ( current.getAttribute( 'contentEditable' ) == 'false' )
  • _source/plugins/wysiwygarea/plugin.js

     
    995995                                if ( element.type == CKEDITOR.NODE_ELEMENT
    996996                                                && ( element.is( 'input' ) || element.is( 'textarea' ) ) )
    997997                                {
    998                                         element.setAttribute( 'contentEditable', false );
     998                                        if ( !element.isReadOnly() )
     999                                        {
     1000                                                element.setAttribute( 'contentEditable', false );
     1001                                                // We should flag that the element was locked by our code so
     1002                                                // it'll be editable by the editor functions (#6046).
     1003                                                element.setCustomData( '_cke_lockedInput', true );
     1004                                        }
    9991005                                }
    10001006                        });
    10011007
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy