Well, the simplest way would be to ask the student to select the relevant text from the displayed paragraph and drag&drop it into the short answer box. Would that work for you?
Itamar Tzadok
Oqallisissiat Itamar Tzadok-imit allatat
Does the student need to select a word or a paragraph from the text?
Actually it seems that the short answer doesn't have to be short. It is just that the text box is one line but I guess that can be fixed with some javascript.
Is it supposed to be marked automatically or manually? Essay question should do the work in the manual case. Short answer may fit the automatic case if the selection is short enough.
Itamar
Itamar
This function works exclusively with Moodle's HTML editor as it calls the editor functions (e.g editor._getSelection(), editor.insertHTML(...)). "editor_5db013afcda3669b8c52fb0417e0b3dd" is a unique editor id in a specific page (which is extracted from the page after the question is created) and is different for each question. In short, it can't be used it as is for your purpose, but it can show the way.
I'll try to come up with code which does what you need after breakfast
Itamar
I'll try to come up with code which does what you need after breakfast
Itamar