#109753Can't edit links with long URLs in RTE
Description
I have a RTE field containing a link with an URL that is almost 500 characters long.
By clicking on that link inside the editor the link preview pops up, but the buttons to edit the link are so far out of the view that an editor unable to edit the link (see attached screenshot). As an admin I can at least use the html view to edit the URL, as a workaround.
This can be fixed with a bit of CSS in line 3852 of cms-backend/Resources/Public/Css/backend.css, like:
.ck.ck-toolbar>.ck-toolbar__items>.ck-link-toolbar__preview{padding:0 var(--ck-spacing-medium)}
becomes
.ck.ck-toolbar>.ck-toolbar__items>.ck-link-toolbar__preview{padding:0 var(--ck-spacing-medium);max-width:500px;overflow:hidden;text-overflow:ellipsis;}Reviews 1
Files 3
History 34
-
Benni Mack changed Sprint Focus On Location Sprint <span data-processor="relativetime" data-value="2026-08-06T16:02:56+00:00" > 08/06/26, 16:02 </span>
-
Georg Ringer commented and changed attached Bildschirmfoto 2026-11-12 um 22.43.59.png attached Bildschirmfoto 2026-11-12 um 22.44.16.png <span data-processor="relativetime" data-value="2026-11-12T21:44:59+00:00" > 11/12/26, 21:44 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97594 status
NewUnder Review <span data-processor="relativetime" data-value="2026-11-12T21:46:33+00:00" > 11/12/26, 21:46 </span> -
Georg Ringer commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-11-13T10:15:18+00:00" > 11/13/26, 10:15 </span>Applied in changeset commit:17bfb32a13101f0fdef61254ed2f44096314cb20.
!Bildschirmfoto%202026-11-12%20um%2022.43.59.png!
Bildschirmfoto%202026-11-12%20um%2022.44.16.png
example content to test
<p> Before <a href="https://example.com/very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-very-long-path-segment-?a=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx">long link text</a> after </p>