Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function registerPlugin(options) {
Widget.register()
/* eslint-disable*/
// hack to remove default image widget
const comps = CMS.getEditorComponents()
comps._root.entries = []
comps.size = 0
/* eslint-enable*/
CMS.registerEditorComponent(createSingle(options))
CMS.registerEditorComponent(createMultiple(options))
}