Changeset 13667
- Timestamp:
- 05/10/08 09:15:03 (6 days ago)
- Files:
-
- 1 modified
-
dijit/trunk/_editor/plugins/EnterKeyHandling.js (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
dijit/trunk/_editor/plugins/EnterKeyHandling.js
r13314 r13667 166 166 range = selection.getRangeAt(0); 167 167 } 168 168 169 var newblock = this.editor.document.createElement(this.blockNodeForEnter); 169 170 newblock.innerHTML=this.bogusHtmlContent; … … 187 188 range.startContainer, range.startOffset)){ 188 189 dojo.place(newblock, block.blockNode, block.blockNode === block.blockContainer ? "first" : "before"); 189 if( this.editor.height){190 if(newblock.nextSibling && this.editor.height){ 190 191 //browser does not scroll the caret position into view, do it manually 191 newblock. scrollIntoView(false);192 newblock.nextSibling.scrollIntoView(false); 192 193 } 193 194 _letBrowserHandle = false;