practice.sources.render - Events - Rubric Editor API

Rubric Editor API Events

practice:sources:render

Fires when the sources section within the Test panel is rendered and contains meaningful content.

You would want to listen to this event when you need to post-process specifically the sources content within the Test panel, for example, to trigger math rendering on the sources element.

Examples

rubricEditor.on('practice:sources:render', function () {
    // Post-process the sources content, e.g. render math
    MathJax.typesetPromise();
});
Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.