Inserting links wrapped in bold/italic removes previous links in same paragraph
Description
Previous links in a paragraph is removed when inserting link that is wrapped in bold/italic.
Steps to reproduce
- Create a redactor text field, with bold and links enabled.
- Write a sentence, then mark some text at the beginning of the sentence and insert a link.
- Mark some text at the end of the sentence, apply bold text to the selected text, then insert a link.
- Observe that the first inserted link is removed.
Additional info
This bug can be avoided if you clear the selection after applying bold text, but before inserting the link.
- Craft version: 3.7.51
- PHP version: 7.4.30
- Database driver & version: MySQL 8.0.29
- Plugins & versions: Redactor 2.10.10
https://user-images.githubusercontent.com/1235821/186601411-ef966c4d-2a5f-47f3-9dde-9a1c38f8c1a6.mp4
Having the same issue. Can this be fixed?
We are experiencing the same issue.
Craft: 3.7.57 Redactor Plugin: 2.10.10
I'm experiencing a similar issue, with multiple links on separate lines, but within the same paragraph.
Steps that helped me to - more or less - consistently reproduce:
- Create some text separated by
<br />s / soft enters - Make all but the last line links (to entries, assets)
- Select the last line, link to an asset
- Before confirming the Insert Link modal, modify the link text in the modal, then click 'insert'
- The link on the line above the selected text is replaced with the newly created link
- The text that was selected to create the last link is not linked
Craft Pro 3.8.5 Redactor 2.10.12
Any chance of having this bug looked at anytime soon? It's still present in 4.4.11 which our client is currently running.