Ticket #5436: 5436_2.patch
File 5436_2.patch, 993 bytes (added by , 13 years ago) |
---|
-
_source/plugins/wysiwygarea/plugin.js
122 122 range.moveToPosition( lastElement, CKEDITOR.POSITION_AFTER_END ); 123 123 124 124 var next = lastElement.getNextSourceNode( true ); 125 if ( next && next.type == CKEDITOR.NODE_ELEMENT ) 125 var lastElementIsInline = CKEDITOR.dtd.$inline[ lastElement.getName() ] 126 if ( !lastElementIsInline && next && next.type == CKEDITOR.NODE_ELEMENT ) 126 127 range.moveToElementEditStart( next ); 127 128 128 129 selection.selectRanges( [ range ] ); … … 902 903 editor.on( 'insertElement', function ( evt ) 903 904 { 904 905 var element = evt.data; 905 if ( element.type = CKEDITOR.NODE_ELEMENT906 if ( element.type == CKEDITOR.NODE_ELEMENT 906 907 && ( element.is( 'input' ) || element.is( 'textarea' ) ) ) 907 908 { 908 909 element.setAttribute( 'contentEditable', false );