0.3.11 • Published 3 months ago

fo-editor-vue v0.3.11

Weekly downloads
-
License
ISC
Repository
-
Last release
3 months ago

fo-editor-vue

最新文档请移步官方地址

Vue3 组件使用方式

安装依赖

npm install fo-editor-vue --save

OR

yarn add fo-editor-vue

集成使用

<template>
  <VueEditor ref="editorRef" @onChange="onChange" :defaultValue="value"/>
</template>
<script setup lang="tsx">
import { shallowRef } from "vue";
import { VueEditor, FoEditor } from 'fo-editor-vue';

const editorRef = shallowRef<FoEditor>();

// json 文档
const value = `{...}`;
// 感知 onChange 变化
const onChange = ({ docChanged }: { docChanged: boolean }) => {
  if (docChanged) {
    console.log('doc changed:', editorRef.value().toValue());
  } else {
    console.log('光标变化等');
  }
};
</script>
0.3.11

3 months ago

0.3.10

4 months ago

0.3.9

6 months ago

0.3.8

7 months ago

0.3.6

8 months ago

0.3.5

8 months ago

0.3.2

8 months ago

0.3.4

8 months ago

0.3.3

8 months ago

0.1.22

9 months ago

0.1.24

9 months ago

0.3.0

8 months ago

0.2.1

9 months ago

0.2.7

9 months ago

0.1.18

10 months ago

0.2.8

9 months ago

0.1.19

9 months ago

0.2.3

9 months ago

0.3.1

8 months ago

0.2.5

9 months ago

0.2.4

9 months ago

0.1.16

10 months ago

0.1.11

10 months ago

0.1.12

10 months ago

0.1.13

10 months ago

0.1.14

10 months ago

0.1.15

10 months ago

0.1.10

11 months ago

0.1.8

11 months ago

0.1.7

11 months ago

0.0.7

1 year ago

0.0.7-alpha.0

1 year ago