Merge pull request #935 from ONLYOFFICE/fix/fix-bugs-on-mobiles

[SSE mobile] Fix bug 50785
This commit is contained in:
maxkadushkin 2021-06-21 18:53:33 +03:00 committed by GitHub
commit 8ee53aa94e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,8 +12,8 @@ class _FunctionGroups extends Component {
super(props);
}
componentDidMount() {
Common.Notifications.on('engineCreated', api => {
this.api = api;
Common.Notifications.on('document:ready', () => {
this.api = Common.EditorApi.get();
this.init();
});
}