mirror of
https://github.com/ONLYOFFICE/onlyoffice.github.io.git
synced 2026-04-07 14:04:30 +08:00
checking desktop version
This commit is contained in:
@ -643,11 +643,7 @@ async function registerButtons(window, undefined)
|
|||||||
button2.attachOnClick(on_click_ocr);
|
button2.attachOnClick(on_click_ocr);
|
||||||
}
|
}
|
||||||
|
|
||||||
let neededVersionForAiAssistant = 9002000;
|
if (editorVersion >= 9002000 && Asc.Editor.getType() === "word")
|
||||||
if (window.AscDesktopEditor) {
|
|
||||||
neededVersionForAiAssistant = 9003000;
|
|
||||||
}
|
|
||||||
if (editorVersion >= neededVersionForAiAssistant && Asc.Editor.getType() === "word")
|
|
||||||
{
|
{
|
||||||
let buttonGS = new Asc.ButtonToolbar(buttonMainToolbar);
|
let buttonGS = new Asc.ButtonToolbar(buttonMainToolbar);
|
||||||
buttonGS.text = "Grammar & Spelling";
|
buttonGS.text = "Grammar & Spelling";
|
||||||
@ -666,7 +662,14 @@ async function registerButtons(window, undefined)
|
|||||||
onCheckGrammarSpelling(true);
|
onCheckGrammarSpelling(true);
|
||||||
});
|
});
|
||||||
buttonGS.split = true;
|
buttonGS.split = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
let neededVersionForAiAssistant = 9002000;
|
||||||
|
if (window.AscDesktopEditor) {
|
||||||
|
neededVersionForAiAssistant = 9003000;
|
||||||
|
}
|
||||||
|
if (editorVersion >= neededVersionForAiAssistant && Asc.Editor.getType() === "word")
|
||||||
|
{
|
||||||
const buttonCustomAssistant = new Asc.ButtonToolbar(buttonMainToolbar);
|
const buttonCustomAssistant = new Asc.ButtonToolbar(buttonMainToolbar);
|
||||||
buttonCustomAssistant.text = "Create AI assistant";
|
buttonCustomAssistant.text = "Create AI assistant";
|
||||||
buttonCustomAssistant.icons = getToolBarButtonIcons("plugin-writer");
|
buttonCustomAssistant.icons = getToolBarButtonIcons("plugin-writer");
|
||||||
|
|||||||
Reference in New Issue
Block a user