Skip to content

wangeditor-team/wangEditor-plugin-ctrl-enter

Repository files navigation

wangEditor 插件 - ctrl+enter 换行

English documentation

介绍

wangEditor 中使用 ctrl+entercmd+enter 换行。

安装

yarn add @wangeditor/plugin-ctrl-enter

使用

要在创建编辑器之前注册,且只能注册一次,不可重复注册。

import { Boot } from '@wangeditor/editor'
import ctrlEnterModule from '@wangeditor/plugin-ctrl-enter'

Boot.registerModule(ctrlEnterModule)

// Then create editor and toolbar