@ctqeditor/editor-for-vue 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
package/README.md ADDED
@@ -0,0 +1,20 @@
1
+ # wangEditor for Vue
2
+
3
+ [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/facebook/react/blob/main/LICENSE) [![npm](https://img.shields.io/npm/v/@wangeditor/editor-for-vue.svg)](https://www.npmjs.com/package/@wangeditor/editor-for-vue/v/next) [![build status](https://github.com/wangeditor-team/wangEditor-for-vue/actions/workflows/npm-publish.yml/badge.svg?branch=main)](https://github.com/wangeditor-team/wangEditor-for-vue/actions)
4
+
5
+ [English documentation](./README-en.md)
6
+
7
+ ## 介绍
8
+
9
+ 基于 [wangEditor](https://www.wangeditor.com/) 封装的开箱即用的 [Vue2 组件](https://www.wangeditor.com/v5/for-frame.html#vue2)
10
+
11
+ ## 安装
12
+
13
+ ```shell
14
+ yarn add @wangeditor/editor
15
+ yarn add @wangeditor/editor-for-vue
16
+ ```
17
+
18
+ ## 使用
19
+
20
+ 参考[文档](https://www.wangeditor.com/v5/for-frame.html#vue2)
@@ -0,0 +1,9 @@
1
+ import Vue from 'vue';
2
+ declare const _default: import("vue/types/vue").ExtendedVue<Vue, {
3
+ curValue: string;
4
+ editor: null;
5
+ }, {
6
+ setHtml(newHtml: string): void;
7
+ create(): void;
8
+ }, unknown, Record<"defaultContent" | "defaultConfig" | "mode" | "defaultHtml" | "value", any>>;
9
+ export default _default;
@@ -0,0 +1,5 @@
1
+ import Vue from 'vue';
2
+ declare const _default: import("vue/types/vue").ExtendedVue<Vue, unknown, {
3
+ create(editor: any): void;
4
+ }, unknown, Record<"editor" | "defaultConfig" | "mode", any>>;
5
+ export default _default;
@@ -0,0 +1,7 @@
1
+ /**
2
+ * @description editor-for-vue entry
3
+ * @author wangfupeng
4
+ */
5
+ import Editor from './components/Editor.vue';
6
+ import Toolbar from './components/Toolbar.vue';
7
+ export { Editor, Toolbar };