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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
def | MojiDefinition |
Returns
Section titled “Returns”TextSpan