refactoring
This commit is contained in:
@@ -29,7 +29,7 @@ export default new Mark()
|
|||||||
],
|
],
|
||||||
toDOM: () => ['strong', 0],
|
toDOM: () => ['strong', 0],
|
||||||
}))
|
}))
|
||||||
.commands(({ editor, name, type }) => ({
|
.commands(({ editor, name }) => ({
|
||||||
bold: next => () => {
|
bold: next => () => {
|
||||||
editor.toggleMark(name)
|
editor.toggleMark(name)
|
||||||
next()
|
next()
|
||||||
|
|||||||
Reference in New Issue
Block a user