MCPcopy Create free account
hub / github.com/Toola-bakery/Toola / EditableText

Function EditableText

client/src/features/blocks/components/EditableText.tsx:23–124  ·  view source on GitHub ↗
({
	defaultValue = '',
	tagName = 'span',
	className,
	style,
	value: controlledValue,
	setValue: controlledSetValue,
	allowEntities = true,
	placeholder,
	valuePropertyName = 'value',
}: {
	valuePropertyName?: string;
	defaultValue?: string;
	tagName?: string;
	className?: string;
	style?: React.CSSProperties;
	setValue?: (nextValue: string) => void;
	value?: string;
	allowEntities?: boolean;
	placeholder?: string;
} = {})

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 9

usePageContextFunction · 0.90
useBlockPropertyFunction · 0.90
entitiesToHTMLFunction · 0.90
useReferencesFunction · 0.90
setCaretPositionFunction · 0.90
htmlToEntitiesFunction · 0.90
getCaretIndexFunction · 0.90
setValueFunction · 0.85

Tested by

no test coverage detected