Rubric Editor API Methods
once()
Registers an event listener for the specified event that will be executed only once.
You would want to use this to execute a callback function the next time the specified event is triggered, after which the listener will be removed.
Examples
editor.once('change', function (rubric) {
console.log('rubric has changed', rubric);
});
Arguments
-
event string
The name of the event to listen for.
-
callback function
The function to execute when the event is triggered.
Return value
None (undefined).