MCPcopy Create free account
hub / github.com/docusealco/docuseal / addCommands

Function addCommands

app/javascript/elements/html_editor.js:201–207  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

199 return [renderTag, 0]
200 },
201 addCommands () {
202 const commandName = `toggle${name[0].toUpperCase()}${name.slice(1)}`
203
204 return {
205 [commandName]: () => ({ commands }) => commands.toggleMark(name)
206 }
207 },
208 addKeyboardShortcuts () {
209 return {
210 [shortcuts]: () => this.editor.commands.toggleMark(name)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected