craftcms / ckeditor

Edit rich text content in Craft CMS using CKEditor.
https://plugins.craftcms.com/ckeditor
GNU General Public License v3.0
47 stars 25 forks source link

Avoid to create different anchor when using break line #317

Open plcdnl opened 5 days ago

plcdnl commented 5 days ago

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

Sorry in advance for my english

i-just commented 13 hours ago

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.

plcdnl commented 12 hours ago

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

Image