Changeset 7392 for CKEditor/trunk
- Timestamp:
- 03/16/12 08:26:52 (14 months ago)
- Location:
- CKEditor/trunk
- Files:
-
- 3 edited
-
CHANGES.html (modified) (1 diff)
-
_source/core/dom/range.js (modified) (1 diff)
-
_source/plugins/indent/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r7391 r7392 63 63 <li><a href="http://dev.ckeditor.com/ticket/5527">#5527</a> : Don't encode "#" sent from the file browser.</li> 64 64 <li><a href="http://dev.ckeditor.com/ticket/8014">#8014</a> : Autogrow now stretches to fit the content when switching editor modes.</li> 65 <li><a href="http://dev.ckeditor.com/ticket/8249">#8249</a> : Fix inconsistent behavior when backspace key at the start of list item.</li> 65 66 </ul> 66 67 <h3> -
CKEditor/trunk/_source/core/dom/range.js
r7372 r7392 386 386 { 387 387 // Reject any text node unless it's being bookmark 388 // OR it's spaces. (#3883) 389 return node.type != CKEDITOR.NODE_TEXT 390 && node.getName() in CKEDITOR.dtd.$removeEmpty 391 || !CKEDITOR.tools.trim( node.getText() ) 392 || !!node.getParent().data( 'cke-bookmark' ); 388 // OR it's spaces. 389 // Reject any element unless it's being invisible empty. (#3883) 390 return node.type == CKEDITOR.NODE_TEXT ? 391 !CKEDITOR.tools.trim( node.getText() ) || 392 !!node.getParent().data( 'cke-bookmark' ) 393 : node.getName() in CKEDITOR.dtd.$removeEmpty; 393 394 } 394 395 -
CKEditor/trunk/_source/plugins/indent/plugin.js
r7219 r7392 426 426 } 427 427 }); 428 429 editor.on( 'key', function( evt ) 430 { 431 // Backspace at the beginning of list item should outdent it. 432 if ( editor.mode == 'wysiwyg' && evt.data.keyCode == 8 ) 433 { 434 var sel = editor.getSelection(), 435 range = sel.getRanges()[ 0 ], 436 li; 437 438 if ( range.collapsed && 439 ( li = range.startContainer.getAscendant( 'li', 1 ) ) && 440 range.checkBoundaryOfElement( li, CKEDITOR.START ) ) 441 { 442 editor.execCommand( 'outdent' ); 443 evt.cancel(); 444 } 445 } 446 }); 428 447 }, 429 448
Note: See TracChangeset
for help on using the changeset viewer.
