fix: do not autostart non edit mode

This commit is contained in:
Dmitrii Vershinin
2025-10-28 18:55:35 +05:00
committed by Sergey Linnik
parent 5a4b47c4bd
commit 0e8c99aaab

View File

@ -1265,7 +1265,7 @@ app.get('/editor', (req, res) => { // define a handler for editing document
// generate random code for plugin security dynamically
let pluginsConfig;
if (mode !== 'view') {
if (mode == 'edit') {
const updatedOptions = {};
if (plugins.options) {
for (const pluginGuid in plugins.options) {