Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 529 Bytes

File metadata and controls

26 lines (16 loc) · 529 Bytes

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