Merge pull request '[VE] Fix editor type for plugins' (#260) from fix/bugfix into release/v8.3.0

Reviewed-on: https://git.onlyoffice.com/ONLYOFFICE/web-apps/pulls/260
This commit is contained in:
Oleg Korshul
2025-01-29 14:26:00 +00:00

View File

@ -129,7 +129,7 @@ define([
loadConfig: function(data) {
var me = this;
me.configPlugins.config = data.config.plugins;
me.editor = !!window.PDFE ? 'pdf' : !!window.DE ? 'word' : !!window.PE ? 'slide' : !!window.VE ? 'visio' : 'cell';
me.editor = !!window.PDFE ? 'pdf' : !!window.DE ? 'word' : !!window.PE ? 'slide' : !!window.VE ? 'diagram' : 'cell';
me.isPDFEditor = !!window.PDFE;
},