Explorar el Código

Changed order of parameters in DataController.set method inside Editor.setData.

Szymon Kupś hace 9 años
padre
commit
9d919765c7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/editor.js

+ 1 - 1
src/editor.js

@@ -258,7 +258,7 @@ export default class Editor {
 			throw new CKEditorError( 'editor-no-datacontroller: Data controller has not been defined yet.' );
 		}
 
-		this.data.set( editableRootName || this._getDefaultRootName(), data );
+		this.data.set( data, editableRootName || this._getDefaultRootName() );
 	}
 
 	/**