diff --git a/web/documentserver-example/nodejs/views/editor.ejs b/web/documentserver-example/nodejs/views/editor.ejs index 0e42dbbe..ca503787 100644 --- a/web/documentserver-example/nodejs/views/editor.ejs +++ b/web/documentserver-example/nodejs/views/editor.ejs @@ -200,15 +200,11 @@ } }; - if (<%- JSON.stringify(usersForMentions) %> != null) { - - if (<%- JSON.stringify(editor.userid) %> != null) { - config.events.onRequestHistory = onRequestHistory; - config.events.onRequestHistoryData = onRequestHistoryData; - config.events.onRequestHistoryClose = onRequestHistoryClose; - config.events.onRequestRename = onRequestRename; - } - + if (<%- JSON.stringify(editor.userid) %> != null) { + config.events.onRequestHistory = onRequestHistory; + config.events.onRequestHistoryData = onRequestHistoryData; + config.events.onRequestHistoryClose = onRequestHistoryClose; + config.events.onRequestRename = onRequestRename; config.events.onRequestUsers = onRequestUsers; config.events.onRequestSendNotify = onRequestSendNotify; }