1.5.0 • Published 5 years ago
@tracoco/slate-icon-underline v1.5.0
@tracoco/slate-icon-underline
Icon
import Underline from "@tracoco/slate-icon-underline";
Props
- type: Mark type name. Default:
UNDERLINE
Plugin
import { UnderlinePlugin } from "@tracoco/slate-icon-underline";
// this will add render method for this mark, and also support hot key for underline.
const plugins = [UnderlinePlugin(options)];
Hot key
CMD+u
Options
- type: Mark type name. Default:
UNDERLINE
- tagName: Rendered tagName in this plugin. Default
<u/>
1.5.0
5 years ago