소스 검색

Merge pull request #15 from ckeditor/t/ckeditor5-engine/339

Renamed batch.doc to batch.document.
Szymon Cofalik 9 년 전
부모
커밋
a2979df9fd
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      packages/ckeditor5-enter/src/entercommand.js

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

@@ -38,7 +38,7 @@ export default class EnterCommand extends Command {
  */
 export function enterBlock( batch, selection, options = {} ) {
 	const defaultBlockName = options.defaultBlockName;
-	const doc = batch.doc;
+	const doc = batch.document;
 	const isSelectionEmpty = selection.isCollapsed;
 	const range = selection.getFirstRange();
 	const startElement = range.start.parent;
@@ -93,7 +93,7 @@ export function enterBlock( batch, selection, options = {} ) {
 }
 
 function splitBlock( batch, selection, splitPos, defaultBlockName ) {
-	const doc = batch.doc;
+	const doc = batch.document;
 	const parent = splitPos.parent;
 
 	if ( splitPos.isAtEnd() ) {