import Italic from '@canner/slate-icon-italic';
- type: Mark type name. Default:
ITALIC
import {ItalicPlugin} from '@canner/slate-icon-italic';
// this will add render method for this mark, and also support hot key for italic.
const plugins = [
ItalicPlugin(options)
]
CMD+i
- type: Mark type name. Default:
ITALIC
- tagName: Rendered tagName in this plugin. Default
<i/>