Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Tests: Fixed #170 manual test to use synchronous UI API.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Jul 4, 2017
1 parent 909629e commit 6ddda9d
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/manual/tickets/170/1.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,10 @@ ClassicEditor.create( document.querySelector( '#editor-attach' ), {

editor.ui.view.element.querySelector( '.ck-editor__editable' ).scrollTop = 360;

panel.init().then( () => {
panel.attachTo( {
target: editor.ui.view.element.querySelector( '.ck-editor__editable p strong' ),
limiter: editor.ui.view.editableElement
} );
panel.init();
panel.attachTo( {
target: editor.ui.view.element.querySelector( '.ck-editor__editable p strong' ),
limiter: editor.ui.view.editableElement
} );

window.attachEditor = editor;
Expand Down

0 comments on commit 6ddda9d

Please sign in to comment.