Skip to content

Avoid to create different anchor when using break line #317

Open

Description

@plcdnl

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

Activity

  1. i-just commented on Nov 26, 2024

    @i-just
    Contributor

    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.

  2. plcdnl commented on Nov 26, 2024

    @plcdnl
    Author

    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions