h5p-drag-text doesn't implement attach()!
Submitted by theotherdy on Wed, 11/15/2017 - 15:03
Forums:
Was hoping to use h5p-drag-text as the basis for a new content type so am working my way through its code on GitHub but cannot find the .attach() method I was expecting to see, having read the developers guide...the closest I can find is:
DragText.prototype.addTaskTo = function ($container) {
Is this a deprecated method which is still supported or am I looking at the wrong code?
Content types:
theotherdy
Wed, 11/15/2017 - 16:19
Permalink
Sorry, just realised that it extends Question
...and it's Question that imlements the .attach() method!
icc
Thu, 11/16/2017 - 13:07
Permalink
You are indeed correct, all
You are indeed correct, all the question content types implement Question to get a uniform layout, and to use the same UI components in the same places.