we use ONLYOFFICE Docs™ Community Edition Vers. 6.3.1 and integrated
the editor to an HTML popup/modal, not full-screen. When the editor
finished initialization, it automatically gets the zoom and the browser is scrolling
down.
We don’t want this behavior, the editor should not get the focus and
scrolling should also not happen.
I already read about setting this value, but it didn’t help:
Can you provide a video demonstration of this behavior? I do believe it is related to the focus on the editor once the page is loaded but I want to make sure that I understand it correctly.
As I can see you have several events declared, what functions do they execute? Have you tried loading the editor without these events to see if there is any difference? I wasn’t able to reproduce the issue with simple HTML though.
It could be the case. Can you share sample of your implementation of modal with editor? In my test modal is shown right after page is loaded and when editor loads too, the focus goes to the editor:
$('#modal-content').modal({
show: false
});
However, I am not familiar with your implementation of modal with editor, i.e. in which case or under which conditions editor should be rendered. Possibly solution would be to call modal without editor at first so that focus stays in required field and then append editor by pressing specific button, e.g. Preview in your video.
Hello, have you managed to fix this @ipdoc1? We’re embedding an editor using the @onlyoffice/document-editor-react package, again providing the integrationMode: "embed" value and it seems to have no effect. The editor keeps scrolling / stealing my focus. Running version 8.2.2.
No problem. I also didn’t post our implementation because the modal creation, embedding of the editor etc. is done in many multiple files - too hard to understand if you don’t have the entire code.
But like @fr3fou mentioned, the problem also occurs without using modals. Maybe that gives you some new insights - the problem on our side is still annoying.
@fr3fou, considering that you are not using modals, I would ask you to start a new topic. Main discussion here is related to the modals, so it is better not to mix up topics. Thank you.