Issue Bug Resolved

#109753Can't edit links with long URLs in RTE

Florian Seirer 05/04/26, 13:41 updated 11/13/26, 10:15

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

  1. 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>

    !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>
  2. Georg Ringer commented and changed status Under Review Resolved done 0 % 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.