afterRedraw
This event will be fired after each change to the document.
Use with caution: this event will get fired very often during regular editing and can lead to performance degradation. An alternative can be the xmlContextChange event.
Please note that in Internet Explorer, you will have to add the listener for this on document load, and remove it again on document unload:
function onLoad(evt) {
Editor.addEventListener("afterRedraw ", afterRedraw );
}
function onUnLoad(evt) {
Editor.removeEventListener("afterRedraw ", afterRedraw );
}
Editor.addEventListener("load", onLoad);
Editor.addEventListener("unload", onUnLoad);
- Documentation
- › API
- › Global objects API
- › afterRedraw
afterRedraw event
Properties
- canvas HTMLDOMElement
- The HTML element that represents the canvas element.
- target Editor
- The object that originally fired the event.
- type String
- The type of the event
History
| version | event |
|---|---|
| Xopus 3.1 | Introduction. |