ckeditor icon indicating copy to clipboard operation
ckeditor copied to clipboard

Avoid to create different anchor when using break line

Open plcdnl opened this issue 1 year ago • 2 comments

Description

The html resul of this case Image

is this one Image

but how can i do to receive - from the graphql - a full anchor with breakline inside?

Additional info

  • Craft version: 5
  • PHP version: 8.3
  • Database driver & version: MySQL

Sorry in advance for my english

plcdnl avatar Nov 21 '24 15:11 plcdnl

Hi, thanks for getting in touch! This behaviour comes from the CKEditor itself. There’s an issue for it in their repo: https://github.com/ckeditor/ckeditor5/issues/1068. The quick solution mentioned there only works with source editing; when using Shift+Enter the link is still split into two anchor tags. We’re keeping an eye on the issue, though. Feel free to join the conversation in the ckeditor5 repo.

i-just avatar Nov 26 '24 13:11 i-just

Hi @i-just, thank you! This is the workaround i'm using on Craft:

Image

plcdnl avatar Nov 26 '24 14:11 plcdnl