save as for pdf

This commit is contained in:
Sergey Linnik
2024-04-19 12:22:14 +03:00
parent e89eee7e28
commit 844e723387
10 changed files with 9 additions and 31 deletions

View File

@ -295,6 +295,7 @@
// add mentions for not anonymous users
config.events['onRequestUsers'] = onRequestUsers;
config.events['onRequestSaveAs'] = onRequestSaveAs;
// the user is mentioned in a comment
config.events['onRequestSendNotify'] = onRequestSendNotify;
// prevent file renaming for anonymous users
@ -311,10 +312,6 @@
}
}
if (config.editorConfig.createUrl) {
config.events.onRequestSaveAs = onRequestSaveAs;
};
docEditor = new DocsAPI.DocEditor("iframeEditor", config);
};