redactor icon indicating copy to clipboard operation
redactor copied to clipboard

Inserting links wrapped in bold/italic removes previous links in same paragraph

Open andersaloof opened this issue 3 years ago • 4 comments

Description

Previous links in a paragraph is removed when inserting link that is wrapped in bold/italic.

Steps to reproduce

  1. Create a redactor text field, with bold and links enabled.
  2. Write a sentence, then mark some text at the beginning of the sentence and insert a link.
  3. Mark some text at the end of the sentence, apply bold text to the selected text, then insert a link.
  4. 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

andersaloof avatar Aug 23 '22 10:08 andersaloof

Having the same issue. Can this be fixed?

WHITE-developer avatar Mar 28 '23 14:03 WHITE-developer

We are experiencing the same issue.

Craft: 3.7.57 Redactor Plugin: 2.10.10

holmey avatar Mar 28 '23 14:03 holmey

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

riekusvm avatar Mar 30 '23 13:03 riekusvm

Any chance of having this bug looked at anytime soon? It's still present in 4.4.11 which our client is currently running.

andersaloof avatar Jun 30 '23 07:06 andersaloof