IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
81 | 81 | function singletonBlock( node ) |
82 | 82 | { |
83 | 83 | var body = range.document.getBody(); |
84 | | return !node.is( 'body' ) && body.getChildCount() == 1; |
| 84 | |
| 85 | if ( node.isBlockBoundary() && |
| 86 | range.checkBoundaryOfElement( body, CKEDITOR.START ) && |
| 87 | range.checkBoundaryOfElement( body, CKEDITOR.END ) ) |
| 88 | { |
| 89 | return true; |
| 90 | } |
85 | 91 | } |
86 | 92 | |
87 | 93 | var start = range.startContainer, |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
767 | 767 | |
768 | 768 | domDocument.getDocumentElement().addClass( domDocument.$.compatMode ); |
769 | 769 | // Override keystroke behaviors. |
770 | | editable && domDocument.on( 'keydown', function( evt ) |
| 770 | editor.on( 'key', function( evt ) |
771 | 771 | { |
772 | | var keyCode = evt.data.getKeystroke(); |
| 772 | var keyCode = evt.data.keyCode; |
773 | 773 | |
774 | 774 | // Backspace OR Delete. |
775 | 775 | if ( keyCode in { 8 : 1, 46 : 1 } ) |
… |
… |
|
799 | 799 | |
800 | 800 | editor.fire( 'saveSnapshot' ); |
801 | 801 | |
802 | | evt.data.preventDefault(); |
| 802 | evt.cancel(); |
803 | 803 | } |
804 | 804 | else |
805 | 805 | { |
… |
… |
|
823 | 823 | |
824 | 824 | editor.fire( 'saveSnapshot' ); |
825 | 825 | |
826 | | evt.data.preventDefault(); |
| 826 | evt.cancel(); |
827 | 827 | } |
828 | 828 | else if ( path.blockLimit.is( 'td' ) && |
829 | 829 | ( parent = path.blockLimit.getAscendant( 'table' ) ) && |
… |
… |
|
843 | 843 | |
844 | 844 | editor.fire( 'saveSnapshot' ); |
845 | 845 | |
846 | | evt.data.preventDefault(); |
| 846 | evt.cancel(); |
847 | 847 | } |
848 | 848 | |
849 | 849 | } |
… |
… |
|
865 | 865 | range = new CKEDITOR.dom.range( domDocument ); |
866 | 866 | range[ keyCode == 33 ? 'moveToElementEditStart' : 'moveToElementEditEnd']( body ); |
867 | 867 | range.select(); |
868 | | evt.data.preventDefault(); |
| 868 | evt.cancel(); |
869 | 869 | } |
870 | 870 | } |
871 | 871 | |
IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
973 | 973 | joinNextLineToCursor( editor, cursor, range ); |
974 | 974 | evt.cancel(); |
975 | 975 | } |
| 976 | else |
| 977 | { |
| 978 | var list = path.contains( listNodeNames ), li; |
| 979 | // Backspace pressed at the start of list, in first list item. (#9129) |
| 980 | if ( list && range.checkBoundaryOfElement( list, CKEDITOR.START ) ) |
| 981 | { |
| 982 | li = path.contains( CKEDITOR.dtd.$listItem ); |
| 983 | |
| 984 | // Outdent the list item if: |
| 985 | // 1. Inside of empty list item. |
| 986 | // 2. No content to merge before. |
| 987 | if ( range.checkBoundaryOfElement( li, CKEDITOR.START ) ) |
| 988 | { |
| 989 | previous = list.getPrevious( nonEmpty ); |
| 990 | if ( range.checkBoundaryOfElement( li, CKEDITOR.END ) || |
| 991 | !previous || |
| 992 | // A special case of "no content to merge before" |
| 993 | previous.is( 'table' ) ) |
| 994 | { |
| 995 | editor.execCommand( 'outdent' ); |
| 996 | evt.cancel(); |
| 997 | } |
| 998 | } |
| 999 | } |
| 1000 | } |
976 | 1001 | } |
977 | 1002 | else |
978 | 1003 | { |