# @ctsy/neditor

> Vue + NEditor + v-model双向绑定

Latest version **1.0.0** (published 2019-11-30) · MIT license · 0 weekly downloads

## Install

```sh
npm install @ctsy/neditor
pnpm add @ctsy/neditor
yarn add @ctsy/neditor
bun add @ctsy/neditor
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; large bundle.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.0 |
| Published | 2019-11-30 |
| First published | 2019-11-30 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 25.4 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | 晁州 |
| Maintainers | yanpengquan |
| Keywords | ueditor, neditor, vue, vue-cli3, v-model, 富文本编辑器, 百度编辑器 |

## Links

- npm: https://www.npmjs.com/package/@ctsy/neditor
- Repository: https://github.com/c-tsy/vue-neditor-wrap
- Homepage: https://github.com/c-tsy/vue-neditor-wrap#readme
- Issues: https://github.com/c-tsy/vue-neditor-wrap/issues
- npm.io page: https://npm.io/package/@ctsy/neditor

## Alternatives

- [ext-list](https://npm.io/package/ext-list.md) — 6.3M weekly downloads
- [@lexical/selection](https://npm.io/package/@lexical/selection.md) — 3.8M weekly downloads
- [@lexical/text](https://npm.io/package/@lexical/text.md) — 3.6M weekly downloads
- [@lexical/clipboard](https://npm.io/package/@lexical/clipboard.md) — 3.0M weekly downloads
- [@tiptap/extension-mention](https://npm.io/package/@tiptap/extension-mention.md) — 3.0M weekly downloads

## Recent versions

- 1.0.0 (latest) — 2019-11-30

## README

# vue-neditor-wrap

## Installation
```bash
$ npm i @ctsy/neditor
```

## Quick Start

1. 入口文件中引入文件

    ```html
    <script src="https://npm.tansuyun.cn/neditor@tsy/neditor.min.js"></script>
    ```

2. 引入`VueNeditorWrap`组件

    `import VueNeditorWrap from '@ctsy/neditor'`

3. 注册组件
    ```js
    components: {
        VueNeditorWrap
    },
    ```
4. `v-model`绑定数据
    ```html
    <vue-neditor-wrap v-model="content" :config="myConfig" :destroy="false" @ready="ready"></vue-neditor-wrap>
    ```
    ```js
    data () {
        return {
            myConfig: {
                // 编辑器不自动被内容撑高
                autoHeightEnabled: false,
                // 初始容器高度
                initialFrameHeight: 240,
                // 初始容器宽度
                initialFrameWidth: '100%',
                // 关闭自动保存
                enableAutoSave: false
            },
            content: '',
        }
    }
    ```
    > 至此你已经可以在页面中看到一个初始化之后的`NEditor`了，并且它已经成功和数据绑定了！

    ![](https://raw.githubusercontent.com/c-tsy/imgs/master/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20181124115713.png)

    ![](https://raw.githubusercontent.com/c-tsy/imgs/master/%E5%BE%AE%E4%BF%A1%E6%88%AA%E5%9B%BE_20181124114504.png)

## License

[MIT](http://opensource.org/licenses/MIT)

---
_Source: https://npm.io/package/@ctsy/neditor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
