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

Commit

Permalink
Updated UIElement manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
szymonkups committed Feb 15, 2018
1 parent b119088 commit 61edf03
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions tests/view/manual/uielement.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,25 @@ import Undo from '@ckeditor/ckeditor5-undo/src/undo';
import Position from '../../../src/view/position';

function createEndingUIElement( writer ) {
const element = writer.createUIElement( 'span' );

element.render = function( domDocument ) {
const element = writer.createUIElement( 'span', null, function( domDocument ) {
const root = this.toDomElement( domDocument );
root.classList.add( 'ui-element' );
root.innerHTML = 'END OF PARAGRAPH';

return root;
};
} );

return element;
}

function createMiddleUIElement( writer ) {
const element = writer.createUIElement( 'span' );

element.render = function( domDocument ) {
const element = writer.createUIElement( 'span', null, function( domDocument ) {
const root = this.toDomElement( domDocument );
root.classList.add( 'ui-element' );
root.innerHTML = 'X';

return root;
};
} );

return element;
}
Expand Down

0 comments on commit 61edf03

Please sign in to comment.