-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typing over the link feature #7590
Conversation
@ckeditor/qa-team, could you check how the solution works with CF? |
It works fine 👌 We've tested it in all browser and on mobiles. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The check for feature activation (so a whole link and only link is selected) needs improvement.
cc @scofalik I think you should know about this change as it touches the very fragile typing/insert/delete content. |
Just to be sure:
|
At first sight, it looks like the change should be safe for track changes:
This needs testing, but as I said, as I look at it now, it should be fine. |
…tent while typing.
@pomek for pasting and basic link integration - now it works nice with the typing detection 👍 The only thing left is my previous comment: #7590 (comment). In case of multiple other attributes over a link. It is kinda corner case but IMO we could treat it as typing over a link. |
@jodator, should I write additional test for such case? In the code, we copy the selection's attributes. |
Yes, please :) I think that something like below (sample is without values) should work (three text nodes): foo [<$text linkHref>b</$text><$text linkHref bold>a</$text><$text linkHref>r</$text>] baz after type "box": foo <$text linkHref>box[]</$text> baz |
Checked in all browsers and apart from the case with attributes, it looks ok 👍 |
@jodator, done. Ready for review once again. I hope, it will be the last one. |
Suggested merge commit message (convention)
Feature (link): Typing over the selected link will not remove the link itself. Instead, the typed text will replace the link text. Closes #4762.