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

Method decreaseNestingLevel

src/trix/models/block.js:116–123  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

114 }
115
116 decreaseNestingLevel() {
117 const attribute = this.getLastNestableAttribute()
118 if (attribute) {
119 return this.removeAttribute(attribute)
120 } else {
121 return this
122 }
123 }
124
125 increaseNestingLevel() {
126 const attribute = this.getLastNestableAttribute()

Callers 4

tabMethod · 0.45
"Tab+Shift"Method · 0.45
formatOutdentMethod · 0.45
performMethod · 0.45

Calls 2

removeAttributeMethod · 0.95

Tested by

no test coverage detected