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

Method createContainerElement

src/trix/views/piece_view.js:113–125  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

111 }
112
113 createContainerElement() {
114 for (const key in this.attributes) {
115 const value = this.attributes[key]
116 const config = getTextConfig(key)
117 if (config) {
118 if (config.groupTagName) {
119 const attributes = {}
120 attributes[key] = value
121 return makeElement(config.groupTagName, attributes)
122 }
123 }
124 }
125 }
126
127 preserveSpaces(string) {
128 if (this.context.isLast) {

Callers

nothing calls this directly

Calls 2

getTextConfigFunction · 0.90
makeElementFunction · 0.90

Tested by

no test coverage detected