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

Method canSetCurrentBlockAttribute

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

Source from the content-addressed store, hash-verified

326 }
327
328 canSetCurrentBlockAttribute(attributeName) {
329 const block = this.getBlock()
330 if (!block) return
331 return !block.isTerminalBlock()
332 }
333
334 setCurrentAttribute(attributeName, value) {
335 if (getBlockConfig(attributeName)) {

Callers 2

ifFunction · 0.80

Calls 2

getBlockMethod · 0.95
isTerminalBlockMethod · 0.45

Tested by

no test coverage detected