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

Method canSetCurrentAttribute

src/trix/models/composition.js:309–315  ·  view source on GitHub ↗
(attributeName)

Source from the content-addressed store, hash-verified

307 }
308
309 canSetCurrentAttribute(attributeName) {
310 if (getBlockConfig(attributeName)) {
311 return this.canSetCurrentBlockAttribute(attributeName)
312 } else {
313 return this.canSetCurrentTextAttribute(attributeName)
314 }
315 }
316
317 canSetCurrentTextAttribute(attributeName) {
318 const document = this.getSelectedDocument()

Callers 4

setBlockAttributeMethod · 0.95
canActivateAttributeMethod · 0.80
trix.jsFile · 0.80

Calls 3

getBlockConfigFunction · 0.90

Tested by

no test coverage detected