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

Avoid to create different anchor when using break line #317

Open
plcdnl opened this issue Nov 21, 2024 · 2 comments
Open

Avoid to create different anchor when using break line #317

plcdnl opened this issue Nov 21, 2024 · 2 comments
Labels

Comments

@plcdnl
Copy link

plcdnl commented Nov 21, 2024

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 plcdnl added the bug label Nov 21, 2024
@i-just
Copy link
Contributor

i-just commented Nov 26, 2024

Hi, thanks for getting in touch! This behaviour comes from the CKEditor itself. There’s an issue for it in their repo: ckeditor/ckeditor5#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
Copy link
Author

plcdnl commented Nov 26, 2024

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

Image

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

No branches or pull requests

2 participants