Fix unlink functionality in inline tools
Resolve the issue preventing users from unlinking elements in the inline tools. Adjustments ensure proper handling of input elements and selection restoration.
Also improves the unlinking behavior from how it was before https://github.com/codex-team/editor.js/pull/2979 broke it (doesn't require multiple clicks) 😓
https://github.com/user-attachments/assets/669ce2ca-14ee-4f08-999c-c2443b903af4
Hi! I've been working on the same issue recently - glad to see a solid solution. I noticed that some ESLint checks are failing; could you please take a look at those?
Also, could you add a test case that verifies the unlink behavior when clicking an inline item? Additionally, please include a changelog entry and bump the version.
I'll check out the solution in more detail later and ask neSpecc to review it.
@akulistus done 👍