mirror of
https://github.com/ONLYOFFICE/document-server-integration.git
synced 2026-04-07 14:06:11 +08:00
add plugins
This commit is contained in:
@ -137,9 +137,227 @@
|
||||
comments: true,
|
||||
feedback: true,
|
||||
goback: {
|
||||
url: ("<%= editor.type %>" == "embedded" ? null : "<%= editor.getServerUrl %>"),
|
||||
},
|
||||
},
|
||||
url: ("<%= editor.type %>" == "embedded" ? null : "<%= editor.getServerUrl %>")
|
||||
}
|
||||
}, plugins: {
|
||||
url: '../../../../sdkjs-plugins/', pluginsData: [{
|
||||
name: "chess (fen)", guid: "asc.{FFE1F462-1EA2-4391-990D-4CC84940B754}",
|
||||
|
||||
variations: [{
|
||||
description: "chess",
|
||||
url: "chess/index.html",
|
||||
|
||||
icons: ["chess/icon.png", "chess/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: true,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "ole",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: true,
|
||||
|
||||
buttons: [{text: "Ok", primary: true}, {text: "Cancel", primary: false}]
|
||||
}, {
|
||||
description: "about",
|
||||
url: "chess/index_about.html",
|
||||
|
||||
icons: ["chess/icon.png", "chess/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: true,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "none",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: [{"text": "Ok", "primary": true}]
|
||||
}]
|
||||
}, {
|
||||
name: "glavred", guid: "asc.{B631E142-E40B-4B4C-90B9-2D00222A286E}",
|
||||
|
||||
variations: [{
|
||||
description: "glavred",
|
||||
url: "glavred/index.html",
|
||||
|
||||
icons: ["glavred/icon.png", "glavred/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: true,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "text",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: [{text: "Ok", primary: true}]
|
||||
}]
|
||||
}, {
|
||||
name: "bold", guid: "asc.{14E46CC2-5E56-429C-9D55-1032B596D928}",
|
||||
|
||||
variations: [{
|
||||
description: "bold",
|
||||
url: "bold/index.html",
|
||||
|
||||
icons: ["bold/icon.png", "bold/icon@2x.png"],
|
||||
isViewer: false,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: false,
|
||||
isModal: false,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "none",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: []
|
||||
}]
|
||||
}, {
|
||||
name: "speech", guid: "asc.{D71C2EF0-F15B-47C7-80E9-86D671F9C595}",
|
||||
|
||||
variations: [{
|
||||
description: "speech",
|
||||
url: "speech/index.html",
|
||||
|
||||
icons: ["speech/icon.png", "speech/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: false,
|
||||
isModal: false,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "text",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: []
|
||||
}]
|
||||
}, {
|
||||
name: "youtube", guid: "asc.{38E022EA-AD92-45FC-B22B-49DF39746DB4}",
|
||||
|
||||
variations: [{
|
||||
description: "youtube",
|
||||
url: "youtube/index.html",
|
||||
|
||||
icons: ["youtube/icon.png", "youtube/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: true,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "ole",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: [{text: "Ok", primary: true}, {text: "Cancel", primary: false}]
|
||||
}]
|
||||
}, {
|
||||
name: "cbr", guid: "asc.{5F9D4EB4-AF61-46EF-AE25-46C96E75E1DD}",
|
||||
|
||||
variations: [{
|
||||
description: "cbr",
|
||||
url: "cbr/index.html",
|
||||
|
||||
icons: ["cbr/icon.png", "cbr/icon@2x.png"],
|
||||
isViewer: false,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
isVisual: false,
|
||||
isModal: false,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "none",
|
||||
initData: "",
|
||||
isUpdateOleOnResize: false,
|
||||
buttons: []
|
||||
}]
|
||||
}, {
|
||||
name: "ocr(Tesseract.js)",
|
||||
guid: "asc.{440EBF13-9B19-4BD8-8621-05200E58140B}",
|
||||
baseUrl: "",
|
||||
|
||||
variations: [{
|
||||
description: "ocr",
|
||||
url: "ocr/index.html",
|
||||
|
||||
icons: ["ocr/icon.png", "ocr/icon@2x.png"],
|
||||
isViewer: false,
|
||||
EditorsSupport: ["word"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: false,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "html",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: [{text: "Insert In Document", primary: true},
|
||||
{text: "Cancel", primary: false}]
|
||||
}]
|
||||
}, {
|
||||
name: "yandextranslate", guid: "asc.{D3E759F7-3947-4BD6-B066-E184BBEDC675}",
|
||||
|
||||
variations: [{
|
||||
description: "yandextranslate",
|
||||
url: "yandextranslate/index.html",
|
||||
|
||||
icons: ["yandextranslate/icon.png", "yandextranslate/icon@2x.png"],
|
||||
isViewer: false,
|
||||
EditorsSupport: ["word", "cell", "slide"],
|
||||
|
||||
isVisual: false,
|
||||
isModal: false,
|
||||
isInsideMode: false,
|
||||
|
||||
initDataType: "text",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: []
|
||||
}]
|
||||
}, {
|
||||
name: "ClipArt", guid: "asc.{F5BACB61-64C5-4711-AC8A-D01EC3B2B6F1}",
|
||||
|
||||
variations: [{
|
||||
description: "ClipArt",
|
||||
url: "clipart/index.html",
|
||||
|
||||
icons: ["clipart/icon.png", "clipart/icon@2x.png"],
|
||||
isViewer: true,
|
||||
EditorsSupport: ["word"],
|
||||
|
||||
isVisual: true,
|
||||
isModal: false,
|
||||
isInsideMode: true,
|
||||
|
||||
initDataType: "none",
|
||||
initData: "",
|
||||
|
||||
isUpdateOleOnResize: false,
|
||||
|
||||
buttons: [{text: "Ok", primary: true}]
|
||||
}]
|
||||
}]
|
||||
}
|
||||
},
|
||||
events: {
|
||||
"onReady": onReady,
|
||||
@ -148,8 +366,8 @@
|
||||
"onError": onError,
|
||||
"onRequestHistory": onRequestHistory,
|
||||
"onRequestHistoryData": onRequestHistoryData,
|
||||
"onRequestHistoryClose": onRequestHistoryClose,
|
||||
},
|
||||
"onRequestHistoryClose": onRequestHistoryClose
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user