heidkaemper / craft-redactor-anchors

Support for anchors in Craft CMS Redactor
https://plugins.craftcms.com/redactor-anchors
MIT License
10 stars 4 forks source link

Unlink not working #9

Closed fvwanja closed 2 years ago

fvwanja commented 2 years ago

Description

When I unlink and reload the page, the text is still linked.

Steps to reproduce

  1. Enter some Text in a redactor field
  2. Place a link
  3. Save the page
  4. Unlink (do nothing else, this is important)
  5. Save the page

→ The link is still there 👎

What does work is when I change some text after unlinking a hyperlink (see step 5 in the following list):

  1. Enter some Text in a redactor field
  2. Place a link
  3. Save the page
  4. Unlink
  5. Change some text (like adding a word)
  6. Save the page

→ The link is gone 👍

You may also check this handy video I took:

https://user-images.githubusercontent.com/90781427/180024692-53606cfe-7731-4f99-b9d9-99c357549f65.mp4

Additional info

"craftcms/redactor": "2.10.10",
"utakka/redactor-anchors": "1.4.0",

*Yeah I know I use both craftcms/redactor and utakka/redactor-anchors and I do not know which one is the trouble maker so I will create a separate bug-ticket in https://github.com/craftcms/redactor/issues/422. I promise to close the issue myself as soon as a solution has been found! 🙏 I just cannot figure out which plugin is responsible for this behaviour.

Thank you in advance, I ❤️ Craft

fvwanja commented 2 years ago

Here is an update for you @heidkaemper,

I assume the package causing the problem has to be craftcms/redactor and not utakka/redactor-anchors since the owner could reproduce the issue without using utakka/redactor-anchors.

See https://github.com/craftcms/redactor/issues/422#issuecomment-1220617178

I will close this issue and thank you for your time!

Greetings from cologne 👋