浏览代码

Fixing after changes introduced in t/ckeditor5-engine/1236

Szymon Cofalik 7 年之前
父节点
当前提交
4b071d3adf
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/ckeditor5-editor-balloon/tests/ballooneditor.js

+ 2 - 2
packages/ckeditor5-editor-balloon/tests/ballooneditor.js

@@ -258,9 +258,9 @@ describe( 'BalloonEditor', () => {
 					schema.extend( 'heading', { allowIn: '$root' } );
 					schema.extend( '$text', { allowIn: 'heading' } );
 
-					editor.conversion.for( 'toData' ).add( downcastElementToElement( { model: 'heading', view: 'heading' } ) );
 					editor.conversion.for( 'upcast' ).add( upcastElementToElement( { model: 'heading', view: 'heading' } ) );
-					editor.conversion.for( 'toEditing' ).add( downcastElementToElement( {
+					editor.conversion.for( 'dataDowncast' ).add( downcastElementToElement( { model: 'heading', view: 'heading' } ) );
+					editor.conversion.for( 'editingDowncast' ).add( downcastElementToElement( {
 						model: 'heading',
 						view: 'heading-editing-representation'
 					} ) );