Is it Possible to Use HTML/JS in 'Introduction Text'?

Is there any way to have HTML accepted as input in the introduction box for a H5P activity? Similar to how in Drupal you can choose between 'plain text', 'html', 'full html'.

I'm hoping to use HTML to present content in a more interactive way, and then use a H5P question below for concept checking.
 (I.e. students will have 1 minute to do a gist reading of a text which scrolls up the page, then answer a general meaning question on the text at the end, or students will interactive with embedded Genius.com annotations of a text, then answer more detailed questions).

I can of course create a new page, and embed H5P questions at the end, however it isn't really optimal.

If there's no quick fix, it would be great if somebody could point me in the direction of what files I'd need to learn about and change!

Also, thanks a lot to everybody contributing here. You've created some extremely useful tools!

thomasmars's picture

It is not possible to type in HTML or JS into any of the H5P activities. Allowing it would introduce some security risks that would have to be handled.

If you have a particular use-case for a H5P activity it is likely that others would want the same feature. If you have developer experience I would recommend going to your desired library/repository and create an issue there where the new feature could be discussed, and finally create a pull request for the library. If you want to create a new content type like the one you suggested where there is a time-limit on reading a text and answering a question you could create a wrapper content type which has dependencies to a H5P text and question library, which it uses, and adds logic for timer on top of this. If you choose to go with creating a new library I would have a look at the composite content types on github, e.g. Course Presentation, Documentation Tool.

Another alternative is to hook into the content type through the JS hook, this will have to be added through a separate module and is not as future proof as getting your changes integrated directly into a library.

Thomas