vwu
vue-weui-ueditor
npm i vue-weui-ueditor
vwu

vue-weui-ueditor

A Wrapper of UEditor for Vue 2.x With mp.weixin weui

by 伊吾鱼

0.2.3 (see all)License:MITTypeScript:Not Found
npm i vue-weui-ueditor
Readme

vue-weui-ueditor

A Wrapper of UEditor for vue 2.xwith mp.weixin weuiUI

Intro

Weui-ueditor is a simple and beautiful rich editor based on ueditor, and with weui.

Demo

Install

$ npm i vue-weui-ueditor --S

Or using cnpm

$ cnpm i vue-weui-ueditor --S

Usage

<template>
    <div id="app">
        <weuiUEditor></weuiUEditor>
    </div>
</template>
<script>
    import weuiUEditor from 'vue-weui-ueditor';

    import 'vue-weui-ueditor/dist/vue-weui-ueditor.min.css';
    export default {
        name: 'app',
        components: {
            weuiUEditor
        }
    };
</script>

Attributes

paramdescriptiontypeoptionaldefault
config见下表Objectnull, object{}
content父子间传递的编辑器内容string-''
editorTopOffset滚动的时候编辑器的工具条浮层距离Number-0
on-editor-ready编辑器初始化回调Functionnullnull

Method

namedescriptionparams
setContent设置编辑器内容(String html)
execCommand执行编辑器cmd,用于拓展 UEditor API doc(String cmdName, argv)
getContent获取编辑内容. type['Content'(defalut), 'AllHtml', 'PlainTxt'],当默认值时,可以通过参数定义编辑器内置的判空规则(String type, Function fn)

Config

keydescriptiontypeoptionaldefault
selectOptions下拉的选择按钮Object{'rowspacing', 'lineheight', 'orderedlist', 'unorderedlist', 'fontsize'}见optional

待扩展

License

This is available under [the MIT license](https://opensource.org/licenses/mit-license.php.

Downloads/wk

49

GitHub Stars

19

LAST COMMIT

4yrs ago

MAINTAINERS

1

CONTRIBUTORS

0

OPEN ISSUES

1

OPEN PRs

0
VersionTagPublished
0.2.3
latest
4yrs ago
No alternatives found
No tutorials found
Add a tutorial