h5p-drag-text doesn't implement attach()!

theotherdy's picture
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's picture

...and it's Question that imlements the .attach() method!

icc's picture

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.