SCEditor icon indicating copy to clipboard operation
SCEditor copied to clipboard

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

Open MioVisman opened this issue 1 year ago • 0 comments

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].

MioVisman avatar Apr 06 '23 11:04 MioVisman