Move selection mark/cursor to end of markdown once done processing
This commit is contained in:
@@ -552,8 +552,8 @@ export const Text = forwardRef<ExtendedTextUtils, TextProps>((props, ref) => {
|
|||||||
}
|
}
|
||||||
// markdown interception
|
// markdown interception
|
||||||
if (supportMarkdown && handleMarkdown(e)) {
|
if (supportMarkdown && handleMarkdown(e)) {
|
||||||
const start_selection = utils.current.getStartSelection();
|
const endOfMarkdown = utils.current.getEndSelection();
|
||||||
utils.current.setSelection(start_selection);
|
utils.current.setSelection(endOfMarkdown);
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user