MCPcopy
hub / github.com/basecamp/trix / removeAttribute

Method removeAttribute

src/trix/controllers/toolbar_controller.js:232–236  ·  view source on GitHub ↗
(dialogElement)

Source from the content-addressed store, hash-verified

230 }
231
232 removeAttribute(dialogElement) {
233 const attributeName = getAttributeName(dialogElement)
234 this.delegate?.toolbarDidRemoveAttribute(attributeName)
235 return this.hideDialog()
236 }
237
238 hideDialog() {
239 const element = this.element.querySelector(activeDialogSelector)

Callers 5

showDialogMethod · 0.45
hideDialogMethod · 0.45
resetDialogInputsMethod · 0.45
serialization.jsFile · 0.45

Calls 3

hideDialogMethod · 0.95
getAttributeNameFunction · 0.85

Tested by

no test coverage detected