diff --git a/tests/plugins/imagebase/features/caption.js b/tests/plugins/imagebase/features/caption.js index 7a00d2b9250..17b9a678f87 100644 --- a/tests/plugins/imagebase/features/caption.js +++ b/tests/plugins/imagebase/features/caption.js @@ -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 ); }