Default behavior of inserting a hyperlink inserts it to the front of text
Closed this issue · 1 comments
engineersamuel commented
Repro Steps:
- C&P'ing from https://github.com/microsoft/roosterjs-react/blob/master/sample/script/ReactEditor.tsx
- Click the Ribbon "Insert Hyperlink"
- Type or C&P the url
- Click ok
- The hyperlink is inserted to the front of the entire text block, not to where the previous cursor position was.
- Note that I verified the component is remembering the cursor position in general, even after clicking insert hyperlink then cancelling, the prior cursor position is remembered.
Env:
- "roosterjs-react": "0.0.71",
- "roosterjs-react-ribbon": "0.0.71",
- The ReactEditor.tsx is being opened from an Office Fabric React Panel.
JiuqingSong commented
This repo is archived now. For react wrapper of roosterjs, please refer to roosterjs-react package in roosterjs repo. Thanks.