Browse Source

Fixed: engine.controller.insert use lowercase constant.

Szymon Cofalik 9 năm trước cách đây
mục cha
commit
518b27b14f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/ckeditor5-engine/src/controller/insert.js

+ 1 - 1
packages/ckeditor5-engine/src/controller/insert.js

@@ -291,7 +291,7 @@ class Insertion {
 
 			// OK:  <p>xx[]</p> + <p>yy</p> => <p>xx[]yy</p> (when sticks to previous)
 			// NOK: <p>xx[]</p> + <p>yy</p> => <p>xxyy[]</p> (when sticks to next)
-			position = new LivePosition( this.position.root, this.position.path, 'STICKS_TO_PREVIOUS' );
+			position = new LivePosition( this.position.root, this.position.path, 'sticksToPrevious' );
 
 			this.batch.merge( mergePosRight );