How to add created editor widget to Hello World Content Type
Submitted by sunnythewebdeveloper on Fri, 05/01/2020 - 19:32
Forums:
I have been following "Hello world tutorial"
I have created widget by following "How to create an editor widget" (https://github.com/h5p/h5p-editor-color-selector)
However I am unable add this widget tp content type and get this error
Missing dependency H5PEditor.ColorSelector 1.0 required by H5P.GreetingCard 1.0.
How to add a custom widget to custom content type ?
Where to place the "H5PEditor.ColorSelector" so its accessable to "H5P.GreetingCard" in "drupal-7-69/sites/default/files/h5p/development" ?
BTW how you search forum, there seems to be no search option visible ?
otacke
Sat, 05/02/2020 - 00:37
Permalink
Please see my answer on
Please see my answer on github. https://github.com/h5p/h5p-editor-color-selector/issues/3#issuecomment-622502187
sunnythewebdeveloper
Mon, 05/04/2020 - 15:31
Permalink
Thanks
Thanks was able to resolve the issue,
the devil was in details,
the tutrial at https://h5p.org/creating-editor-widgets
says to update H5P.GreetingCard/library.json with '"minorVersion": 0' for '"machineName": "H5PEditor.ColorSelector",'
but the version in https://github.com/h5p/h5p-editor-color-selector/library.json
"minorVersion" is 3.
Hence it could not find "H5PEditor.ColorSelector" in "h5p/development"
just upated '"minorVersion": 3' in H5P.GreetingCard/library.json and all works.