sdkjs-plugins
sdkjs-plugins copied to clipboard
Error in plugin example_work_with_content_controls_navigation: recursive execution
Problem with plugin example_work_with_content_controls_navigation
In code was used undocumented method window.Asc.plugin.event_onTargetPositionChanged
.
This method will be recursively executed after click to any content control id in plugin meny
Fix commit: https://github.com/ONLYOFFICE/sdkjs-plugins/commit/54c89280ecb543f34a3b77b30b29a274d9f401f2
Yes, Infinity execution is fixed, but this method is execute after click to any place in page, not only in content control. Next case - try to mousedown near page and move cursor. Or scroll page - method will be execute too