Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
copyWithoutAttributes
Method · 0.95
addAttribute
Method · 0.95
removeAttribute
Method · 0.95
increaseNestingLevel
Method · 0.95
setAttributesAtRange
Method · 0.45
copyWithBaseBlockAttributes
Method · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected