mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-30 00:55:00 +00:00
90e4f4d665
Getting & setting the cursor is done with byte offsets instead of data model offset (characters) so we need to be able to convert between the two as well as splitting characters. TODO: The regex only works on surrogate pairs, not yet combining accents. fixupInsertion will combine a combining mark with the character to its left it it can. Bug: 48630 Change-Id: I8d936fb15d82f73cd45fac142c540a7950850d55
6 lines
186 B
HTML
6 lines
186 B
HTML
<p>12𨋢456789𨋢bc</p>
|
|
<p>「𨋢」字響<tt>香港</tt>衍生出好多新詞,好似:𨋢</p>
|
|
<p>abc</p>
|
|
<p>one c̀ombining accent</p>
|
|
<p>two ç̀ombining accents</p>
|
|
<p>def</p> |