Custom Widget followField
Hey,
I implemented a custom widget to replace the core-image-widget by another image chooser which is able to use drupals Entity Embed Browser (which is pretty cool).
I Implemented this widget as a custom H5PEditor library. Now I want to use the widget in the Library DragQuestion, which I forked for that purpose. In H5PEditor.DragQuestion.js theres the Code block
H5PEditor.followField(parent, 'settings/background', function (params) { that.setBackground(params); });
for watching for changes.