浏览代码

Merge branch t/ckeditor5-engine/1209

Internal: Update API usage after merge t/1209 on engine.
Piotr Jasiun 7 年之前
父节点
当前提交
b83be17978
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-enter/src/entercommand.js

+ 2 - 2
packages/ckeditor5-enter/src/entercommand.js

@@ -73,7 +73,7 @@ function enterBlock( model, writer, selection, schema ) {
 			//
 			// <h>x[x</h><p>y]y<p>	-> <h>x^</h><p>y</p>	-> <h>x</h><p>^y</p>
 			else {
-				selection.setCollapsedAt( endElement );
+				writer.setSelection( endElement );
 			}
 		}
 	}
@@ -97,5 +97,5 @@ function splitBlock( writer, selection, splitPos ) {
 		writer.split( splitPos );
 	}
 
-	selection.setCollapsedAt( splitPos.parent.nextSibling );
+	writer.setSelection( splitPos.parent.nextSibling );
 }