|
@@ -138,16 +138,16 @@ describe( 'Editor', () => {
|
|
|
expect( editor.config.get( 'bar' ) ).to.equal( 'foo' );
|
|
expect( editor.config.get( 'bar' ) ).to.equal( 'foo' );
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
- it( 'should bind editing.view#isReadOnly to the editor', () => {
|
|
|
|
|
|
|
+ it( 'should bind editing.view.document#isReadOnly to the editor', () => {
|
|
|
const editor = new Editor();
|
|
const editor = new Editor();
|
|
|
|
|
|
|
|
editor.isReadOnly = false;
|
|
editor.isReadOnly = false;
|
|
|
|
|
|
|
|
- expect( editor.editing.view.isReadOnly ).to.false;
|
|
|
|
|
|
|
+ expect( editor.editing.view.document.isReadOnly ).to.false;
|
|
|
|
|
|
|
|
editor.isReadOnly = true;
|
|
editor.isReadOnly = true;
|
|
|
|
|
|
|
|
- expect( editor.editing.view.isReadOnly ).to.true;
|
|
|
|
|
|
|
+ expect( editor.editing.view.document.isReadOnly ).to.true;
|
|
|
} );
|
|
} );
|
|
|
|
|
|
|
|
it( 'should activate #keystrokes', () => {
|
|
it( 'should activate #keystrokes', () => {
|