Posts made by Itamar Tzadok

In quiz where main objective is the verify the student learnings and grade the results ...

There is no learning without practice (except for the Matrix wink) and the quiz activity is a very strong practice tool, wayyy stronger than the lesson. smile

No need for a screenshot. Just enter in the option textfield strings such as the following

<span>Hello world</span>

and when the question is displayed it will appear as

<span>Hello world</span>

The issue of HTML tags in questions may be already resolved and Tim may be able to clarify. But, if you have to use the character codes you should better write the questions in Excel where you can search and replace the < and > with &lt; and &gt; and then produce question import code in one of the available formats and import the questions into the questions bank.

The image above is a question preview, not a quiz, and in that view there are in fact 5 buttons which were cropped from the image.

smile
The HTML editor is a layer over a a simple html textarea (at least in all the instances I've encountered and possibly in the assignment grading page too). This means that you should be able to retrieve the content by getting the value property of the html textarea underlying the editor. However, changes to the content in the editor are not transferred to the textarea on-change and so if you need to get the content while modifying it you have to switch to text mode (ed_html.gif) and back to update the textarea. Alternatively you can try the following:

var editor=editor-12345abcd;
editor.focusEditor();
var sel = editor._getSelection();
var range = editor._createRange(sel);
if (HTMLArea.is_ie) {
range.getHtml();
} else {
editor.getHtml();
}

The point is that you need to get the editor in focus in order to access the content. I use this code for inserting content rather than retrieving content and I haven't used the getHtml method and so I follow your post for its syntax.

Hopes this helps. smile