File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ CKEDITOR.dom.elementPath.prototype = {
141
141
} ;
142
142
else if ( CKEDITOR . tools . isArray ( query ) )
143
143
evaluator = function ( node ) {
144
- query . indexOf ( node . getName ( ) ) > - 1 ;
144
+ return query . indexOf ( node . getName ( ) ) > - 1 ;
145
145
} ;
146
146
else if ( typeof query == 'function' )
147
147
evaluator = query ;
Original file line number Diff line number Diff line change 528
528
529
529
evt . data . preventDefault ( ) ;
530
530
}
531
-
531
+ // BACKSPACE/DEL pressed at the start/end of table cell.
532
+ else if ( ( parent = path . contains ( [ 'td' , 'th' , 'caption' ] ) ) &&
533
+ range . checkBoundaryOfElement ( parent , rtl ? CKEDITOR . START : CKEDITOR . END ) ) {
534
+ next = parent [ rtl ? 'getPreviousSourceNode' : 'getNextSourceNode' ] ( 1 , CKEDITOR . NODE_ELEMENT ) ;
535
+ if ( next && ! next . isReadOnly ( ) && range . root . contains ( next ) ) {
536
+ range [ rtl ? 'moveToElementEditEnd' : 'moveToElementEditStart' ] ( next ) ;
537
+ range . select ( ) ;
538
+ evt . data . preventDefault ( ) ;
539
+ }
540
+ }
532
541
}
533
542
534
543
}
You can’t perform that action at this time.
0 commit comments