Interface InjectedTextOptions
Expand description
interface InjectedTextOptions {
attachedData?: unknown;
content: string;
cursorStops?: InjectedTextCursorStops;
inlineClassName?: string;
inlineClassNameAffectsLetterSpacing?: boolean;
}Properties§
§§§§§
readonly attached Data?: unknownThis field allows to attach data to this injected text. The data can be read when injected texts at a given position are queried.
readonly content: stringSets the text to inject. Must be a single line.
readonly cursor Stops?: InjectedTextCursorStopsConfigures cursor stops around injected text. Defaults to InjectedTextCursorStops.Both.
readonly inline Class Name?: stringIf set, the decoration will be rendered inline with the text with this CSS class name.
readonly inline Class Name Affects Letter Spacing?: booleanIf there is an inlineClassName which affects letter spacing.
Configures text that is injected into the view without changing the underlying document.