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

Method decreaseNestingLevel

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

Source from the content-addressed store, hash-verified

415 }
416
417 decreaseNestingLevel() {
418 const block = this.getBlock()
419 if (!block) return
420 return this.setDocument(this.document.replaceBlock(block, block.decreaseNestingLevel()))
421 }
422
423 increaseNestingLevel() {
424 const block = this.getBlock()

Callers

nothing calls this directly

Calls 3

getBlockMethod · 0.95
setDocumentMethod · 0.95
replaceBlockMethod · 0.80

Tested by

no test coverage detected