@bender-tags: 4.12.0, bug, 1469, widget
@bender-ui: collapsed
@bender-ckeditor-plugins: image2, wysiwygarea, toolbar, sourcearea, floatingspace, elementspath

## Procedure

1. Open console.
2. Select and copy widget.
3. Paste into widget's caption.

### Expected result

There is no error in the console.

### Unexpected result

There is error thrown.
