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

Method getCurrentTextAttributes

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

Source from the content-addressed store, hash-verified

482 }
483
484 getCurrentTextAttributes() {
485 const attributes = {}
486 for (const key in this.currentAttributes) {
487 const value = this.currentAttributes[key]
488 if (value !== false) {
489 if (getTextConfig(key)) {
490 attributes[key] = value
491 }
492 }
493 }
494 return attributes
495 }
496
497 // Selection freezing
498

Callers 3

insertStringMethod · 0.95
insertAttachmentsMethod · 0.95
trix.jsFile · 0.80

Calls 1

getTextConfigFunction · 0.90

Tested by

no test coverage detected