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

Method increaseNestingLevel

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

Source from the content-addressed store, hash-verified

421 }
422
423 increaseNestingLevel() {
424 const block = this.getBlock()
425 if (!block) return
426 return this.setDocument(this.document.replaceBlock(block, block.increaseNestingLevel()))
427 }
428
429 canDecreaseBlockAttributeLevel() {
430 return this.getBlock()?.getAttributeLevel() > 0

Callers

nothing calls this directly

Calls 3

getBlockMethod · 0.95
setDocumentMethod · 0.95
replaceBlockMethod · 0.80

Tested by

no test coverage detected