MCPcopy Create free account
hub / github.com/editablejs/editable / getTextContent

Function getTextContent

packages/editor/src/components/string.tsx:80–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 const { text, isTrailing = false } = props
79
80 const getTextContent = () => {
81 return `${text ?? ''}${isTrailing ? '\n' : ''}`
82 }
83
84 return <span {...{ [DATA_EDITABLE_STRING]: true }}>{getTextContent()}</span>
85}

Callers 1

TextStringFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…