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

Commit

Permalink
Tests: Fixed not working manual test.
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarwrobel committed Feb 22, 2018
1 parent 03d76d1 commit 2ed35b9
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/manual/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ class FancyWidget extends Plugin {

conversion.for( 'editingDowncast' ).add( downcastElementToElement( {
model: 'fancywidget',
view: ( modelItem, conversionApi ) => {
const viewWriter = conversionApi.writer;
view: ( modelItem, viewWriter ) => {
const widgetElement = viewWriter.createContainerElement( 'figure', { class: 'fancy-widget' } );
viewWriter.insert( ViewPosition.createAt( widgetElement ), viewWriter.createText( 'widget' ) );

Expand Down

0 comments on commit 2ed35b9

Please sign in to comment.