从npm安装 ONLYOFFICE Docs Vue.js 组件,并使用--save将其保存到package.json文件中: npm install --save @onlyoffice/document-editor-vue 打开onlyoffice-vue-demo项目中的./src/App.vue文件,并将其内容替换为以下代码: <template><DocumentEditorid="docEditor"documentServerUrl="http://documentserver/":config...
可以通过监听 ONLYOFFICE 文档编辑器的 events_onSelectionChanged 事件来获取选中的文字。 在Vue 项目中使用 @onlyoffice/document-editor-vue 组件时,你可以通过监听 events_onSelectionChanged 事件来获取用户在文档编辑器中选中的文字。以下是一个示例代码,展示了如何实现这一功能: vue <template> <DocumentE...
document-editor-vue"; export default defineComponent({ name: 'ExampleComponent', components: { DocumentEditor }, data() { return { config: { document: { fileType: "docx", key: "Khirz6zTPdfd7", title: "Example Document Title.docx", url: "https://example.com/url-to-example-document....
document-editor-vue"; export default defineComponent({ name: 'ExampleComponent', components: { DocumentEditor }, data() { return { config: { document: { fileType: "docx", key: "Khirz6zTPdfd7", title: "Example Document Title.docx", url: "https://example.com/url-to-example-document....
Vue开发环境 在今年 10 月份,ONLYOFFICE 为 Vue 开发了 document-editor-vue 这个框架组件,可以在 Vue 环境中轻松部署在线编辑器。这里是指 ONLYOFFICE 的 Docs 服务器端,提供可供浏览器直接打开的在线端的文档编辑器的服务功能,有了这个针对 Vue 框架的组件,就可以更轻松地在开发或部署环境中安装 ONLYOFFICE 的在...
1 + import DocumentEditor from "./components/DocumentEditor.vue"; 2 + 3 + export { DocumentEditor }; src/shims-vue.d.ts +6Lines changed: 6 additions & 0 deletions Original file line numberDiff line numberDiff line change @@ -0,0 +1,6 @@ 1 + /* eslint-disable */ ...
Document Editor 是 ONLYOFFICE 套件中的文字处理工具,提供了类似于 Microsoft Word 的功能,旨在帮助用户创建和编辑高质量的文档。以下是 Document Editor 的详细功能介绍: 基本功能文档创建与编辑新建文档:支持创建新的空白文档或基于模板的文档。打开与保存:支持打开现有的文档并保存为多种格式,如 DOCX、ODT、RTF 等。
index.vue代码 <template></template>import loadScript from'./loadScript.js'; exportdefault{ name:'DocumentEditor', props: { id: { type: String,default:'', }, documentServerUrl: { type: String,default:'', }, config: { type: Object,default:...
// console.log("ONLYOFFICE Document Editor create file: " + event.data); // .postMessage(event.data); // this.createAndDownloadFile("test.docx",event.data) // }, // "onDownloadAs" : onDownloadAs, }, document: { //后缀 fileType: option.fileType, ...
storybook for DocumentEditor Oct 7, 2022 LICENSE Initial commit Oct 7, 2022 README.md init Oct 7, 2022 babel.config.js init Oct 7, 2022 package-lock.json document-editor-vue v1.4.0 Feb 27, 2024 package.json document-editor-vue v1.4.0 ...