Copy Paste button in editor
Submitted by ftawebdev on Wed, 05/17/2023 - 02:24
Forums:
Hi, Questionnaire has a copy paste button next to each question in the editor. How do they achieve this? I can't see a widget or anything in the semantics to enable it.
otacke
Wed, 05/17/2023 - 12:26
Permalink
That Copy&Paste button is
That Copy&Paste button is added automatically by the editor part of H5P core whenever you use a "library" field for adding subcontent.
What are you working on? Anything cool that the H5P community could play with soon?
ftawebdev
Thu, 05/18/2023 - 12:08
Permalink
Ah ok cool. Nothing
Ah ok cool.
Nothing particulary interesting atm. Just a custom quiz type, really just experimenting with React in H5P, using your boilerplate code. I've managed to get it to work ok, but have noticed that useContext doesn't seem to work, so am having to pass a bunch of state through props to children. I am thinking about doing a Who Wants to be a Millionaire style content type though, just a as an experiment with AWS AI tools. IE, give the AI a topic and get it to generate a bunch of increasingly difficult questions. With a bit of a leaderboard or something.
otacke
Thu, 05/18/2023 - 15:19
Permalink
There's no limitation that
There's no limitation that H5P would impose on React, so `useContext` should work if you feed it a proper context.
Using machine learning services to create questions in connection with H5P is not hard - seen it in two different places before :-)