MCPcopy Index your code
hub / github.com/basecamp/trix / decreaseBlockAttributeLevel

Method decreaseBlockAttributeLevel

src/trix/models/composition.js:433–438  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

431 }
432
433 decreaseBlockAttributeLevel() {
434 const attribute = this.getBlock()?.getLastAttribute()
435 if (attribute) {
436 return this.removeCurrentAttribute(attribute)
437 }
438 }
439
440 decreaseListLevel() {
441 let [ startPosition ] = Array.from(this.getSelectedRange())

Callers 2

deleteInDirectionMethod · 0.95
ifFunction · 0.80

Calls 3

getBlockMethod · 0.95
getLastAttributeMethod · 0.45

Tested by

no test coverage detected