跳到主要内容

onEnableMouseEvent

The function called to turn the mouse or touchpad events on/off.

Parameters

NameData typeDescription
isEnabledbooleanDefines if the mouse or touchpad is enabled (true) or not (false).
window.Asc.plugin.attachEditorEvent("onEnableMouseEvent", (isEnabled) => {
let _frames = document.getElementsByTagName("iframe");
if (_frames && _frames[0]) {
_frames[0].style.pointerEvents = isEnabled ? "none" : "";
}
});