Skip to content

mojiSpan

function mojiSpan(def): TextSpan;

Defined in: mark.ts:82

Build the text span for a resolved moji. Native mojis use the glyph as their text (so it selects/highlights like text); image mojis use a single placeholder code unit (the image is painted by CSS) so the caret can only sit before/after it and deletion stays clean.

ParameterType
defMojiDefinition

TextSpan