Files
xLog/src/editor/Underline.tsx
T
2022-06-01 00:58:02 +08:00

11 lines
242 B
TypeScript

import { ICommand, wrapExecute } from "."
export const Underline: ICommand = {
name: "underline",
label: "Underline",
icon: "i-bi:type-underline",
execute: (view) => {
wrapExecute({ view, prepend: "<u>", append: "</u>" })
},
}