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

Method updateToolbarState

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

Source from the content-addressed store, hash-verified

578 }
579
580 updateToolbarState () {
581 this.boldButton.classList.toggle('bg-base-200', this.editor.isActive('bold'))
582 this.italicButton.classList.toggle('bg-base-200', this.editor.isActive('italic'))
583 this.underlineButton.classList.toggle('bg-base-200', this.editor.isActive('underline'))
584 this.linkButton.classList.toggle('bg-base-200', this.editor.isActive('link'))
585 }
586
587 handleLinkTooltip (editor) {
588 const { from } = editor.state.selection

Callers 8

connectedCallbackMethod · 0.45
boldMethod · 0.45
italicMethod · 0.45
underlineMethod · 0.45
linkSelectionMethod · 0.45
undoMethod · 0.45
redoMethod · 0.45
toggleLinkMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected