Skip to content

Commit

Permalink
Fix failing test in Safari.
Browse files Browse the repository at this point in the history
  • Loading branch information
Comandeer committed Nov 16, 2017
1 parent c799a6d commit ce58a3a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/plugins/imagebase/features/caption.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,13 @@
}

function fillInCaption( widget, content ) {
var range = widget.editor.createRange();

range.setStart( widget.parts.caption.getChild( 0 ), 1 );
range.collapse();
range.select();
widget.parts.caption.focus();

widget.editables.caption.setData( content );
}

Expand Down

0 comments on commit ce58a3a

Please sign in to comment.