Skip to content
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

Can't get out from under the link in which the image is wrapped #934

Open
MioVisman opened this issue Apr 6, 2023 · 0 comments
Open

Can't get out from under the link in which the image is wrapped #934

MioVisman opened this issue Apr 6, 2023 · 0 comments

Comments

@MioVisman
Copy link

Firefox 108
SCEditor 3.2.0 format: bbcode

  1. If I open edit such a post
[url=http://example.com][img]https://i.ibb.co/NpjZt1p/Web-P-Mobile-676-ECAEA9-F56-ED3-C688431-BEEB652-A93-440-es-623601-v1-ab6ab1dcc20aa884a98b6d0f8e36640.webp[/img][/url]

Or I set the cursor with the mouse after the image just inserted wrapped by a link (similar code to above)

  1. Then I try to enter some text and I get this:
    imlink

bbcode result:

[url=http://example.com][img]https://i.ibb.co/NpjZt1p/Web-P-Mobile-676-ECAEA9-F56-ED3-C688431-BEEB652-A93-440-es-623601-v1-ab6ab1dcc20aa884a98b6d0f8e36640.webp[/img] Hello world![/url]

P.S.
If I insert a picture (with a link) via copy/paste and start typing (without setting the cursor), then the result is correct:
imlink2

bbcode result:

[url=http://example.com][img]https://i.ibb.co/NpjZt1p/Web-P-Mobile-676-ECAEA9-F56-ED3-C688431-BEEB652-A93-440-es-623601-v1-ab6ab1dcc20aa884a98b6d0f8e36640.webp[/img] [/url]Hello world!

P.P.S.
But there is a space between [/img] and [/url].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant