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

Method copyWithAttributes

src/trix/models/block.js:43–45  ·  view source on GitHub ↗
(attributes)

Source from the content-addressed store, hash-verified

41 }
42
43 copyWithAttributes(attributes) {
44 return new Block(this.text, attributes, this.htmlAttributes)
45 }
46
47 copyWithoutAttributes() {
48 return this.copyWithAttributes(null)

Callers 6

copyWithoutAttributesMethod · 0.95
addAttributeMethod · 0.95
removeAttributeMethod · 0.95
increaseNestingLevelMethod · 0.95
setAttributesAtRangeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected