Widget help - note widget


(Argiro) #1

Hi,

I am trying to create a simple widget for an iBook where the learners can click on it and take notes, so basically a note widget. I cannot figure out how to be able to allow text to be inserted. Any help would be appreciated.

Many thanks,
Argi


(π•„π•šπ•”π•™π•’π•–π• 𝔾𝕒𝕣𝕠𝕗𝕒𝕝𝕠) #2

Well, you could make a β€œContent Editable” element…

Then, the content of that data could be saved by grabbing the innerHTML and saving it to local storage. That data would then be retrieved when the Hype widget is loaded.

Although, is this necessary? iBooks has the ability to create notes.


(Argiro) #3

Hi Michael,

thanks for this. I’ll take a look.

We do use the note option that the iBooks offer as you mentioned, but we have many pages within the iBook that do not contain any text, there are pictures, animations and many other widgets.

Thanks again for your help!
Argiro