strapi-plugin-wysiwyg-react-md-editor
Version:
Replaces the default Strapi WYSIWYG editor with react md editor.
60 lines (48 loc) • 1.07 kB
Markdown
This is a [strapi](https://github.com/strapi/strapi) rich text editor plugin based on [react md editor](https://github.com/uiwjs/react-md-editor)

Default it uses below commands in sequence:
`[
"title2",
"title3",
"title4",
"title5",
"title6",
"divider",
"bold",
"codeBlock",
"italic",
"strikethrough",
"hr",
"group",
"divider",
"link",
"quote",
"code",
"unorderedListCommand",
"orderedListCommand",
"checkedListCommand",
"strapiMediaLibrary"
]`
You can customize the value in plugins/config.ts file.
```js
export default {
"wysiwyg-react-md-editor": {
enabled: true,
config: {
toolbarCommands: ["title1", "strapiMediaLibrary"],
},
}
}
```
With yarn:
`yarn add strapi-plugin-wysiwyg-react-md-editor`
With npm:
`npm install strapi-plugin-wysiwyg-react-md-editor`
```sh
$ yarn build
$ yarn run develop
```