onlyoffice-vue

基于 Vue2 的 Onlyoffice 编辑器。
2,043 11
Install
npm install onlyoffice-vue
Latest Version:1.0.1
Vue:2
License:MIT
Last Updated:Sep 16, 2022
Links: GitHub  ·  npm
Maintainer: wytxer

ONLYOFFICE VUE

基于 Vue2 的 Onlyoffice 编辑器。

快速使用

1、安装

pnpm add onlyoffice-vue

2、使用

<template>
  <onlyoffice-editor :src="src" :config="editorConfig" @ready="onReady" />
</template>

<script>
export default {
  data () {
    return {
      src: 'http://IP/web-apps/apps/api/documents/api.js',
      editorConfig: {
        document: {
          fileType: 'docx',
          key: 'key.docx',
          title: '测试.docx',
          url: 'http://IP/static/test.docx'
        },
        editorConfig: {
          callbackUrl: 'http://IP/api/v1/onlyoffice/callback'
        }
      }
    }
  },
  methods: {
    // 编辑器加载完毕后回调 ready 函数,editor 为当前编辑器实例
    onReady (editor) {}
  }
}
</script>

查看更多 Onlyoffice 使用方式

License

MIT

Related Packages

@mteditor/vue2

MtEditor 的 Vue 2.7 适配层:Options API 薄壳,兼容 value/input 形式的 v-model

958
vue-wysiwyg

A WYSIWYG HTML editor for Vue.js

564,994
@ddosdor/vue-sh-wysiwyg

Simple and very basic Wysiwyg editor for Vue.js

320 3
@dstepas/vue-wysiwyg

A WYSIWYG HTML editor for Vue.js

4,979 0
article-content-renderer-vue2

A safe Vue 2.7 renderer for the Article Content Protocol ProseMirror JSON format...

1,994 0

Version History

Version Released Vue License
1.0.1 ^2.7.10 MIT