Skip to main content

One post tagged with "prosemirror"

View All Tags

ยท 6 min read
Ifiok Jr.

One of the goals of remirror@1.0.0 is to make consuming commands easier. Chainable commands was identified as one way in which this could be achieved.

commands
.insertText('Hello')
.capitalize({ from: 1, to: 6 })
.toggleBold()
.removeVowels()
.formatCodeBlocks()
.run();

Elegant as it may seem, implementing this posed some challenges.