wangEditor Edit HTML plugin.
yarn add wangeditor-plugin-edit-htmlimport { Boot, IEditorConfig, IToolbarConfig } from '@wangeditor/editor'
import editHtmlModule from 'wangeditor-plugin-edit-html'
// Register
// You should register this before create editor, and register only once (not repeatedly).
Boot.registerModule(editHtmlModule)const toolbarConfig: Partial<IToolbarConfig> = {
insertKeys: {
index: 0,
keys: [
'editHtml', // Edit HTML menu
],
},
// others...
}Then create editor and toolbar, you will use editorConfig and toolbarConfig
Support i18n.
