[upstream] [GHS] Add style to anchor leads to unusable behavior

Created on 21 July 2023, over 1 year ago
Updated 25 January 2024, 10 months ago

Problem/Motivation

When configuring a text-format and adding styles dropdown + adding a style for an anchor link, e.g a.button|Button
The style will be available when the current selection is a link, but after applying the style there is no way to "exit" it, when you press return the style will be further applied and cannot be removed (the style is greyed out, even though applied for current cursor). Only way to remove it for me is to go to "source code" and remove the new created anchor elements, the following screen try to show:

Steps to reproduce

Edit text-format and add "styles" dropdown, add the style a.button|Button
Go to a textfield with the edited text-format, write some text and make it a link, now highlight the link and choose the button style. Now you cannot go anywhere from here as described above

Proposed resolution

Like in ckeditor4 using the same style, pressing return on the keyboard should "exit the anchor and the style"

<3 id="remaining-tasks">Remaining tasks

Upstream blockers:

  1. https://github.com/ckeditor/ckeditor5/issues/14683
  2. https://github.com/ckeditor/ckeditor5/issues/15051
๐Ÿ› Bug report
Status

Fixed

Version

10.2 โœจ

Component
CKEditor 5ย  โ†’

Last updated about 11 hours ago

Created by

๐Ÿ‡ฉ๐Ÿ‡ชGermany sascha_meissner Planet earth

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities