#105778Link edit menu not opening in Firefox with .btn class
Description
When using links with class=“btn” the link edit menu does not open in Firefox.
Reproduce:
1. Use Firefox
2. add a RTE yaml config for links with btn class:
style:
definitions:
- {name: 'Button', element: 'a', classes: ['btn']}
3. style a link with this class in RTE
4. click on the link in order to edit the styled link
Expected behaviour: the link edit menu appears below the link text
Actual behaviour: nothing happens. When I put the cursor next to the link, use the arrow keys to move the cursor into the link and then click the link button of RTE, than the menu appears.
Reviews 3
Related issues 1
History 69
-
Garvin Hicking commented and changed status
NewNeeds Feedback <span data-processor="relativetime" data-value="2024-12-06T11:02:34+00:00" > 12/06/24, 11:02 </span> -
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2024-12-26T15:03:16+00:00" > 12/26/24, 15:03 </span>
I can confirm the issue with Firefox and TYPO3 14, and I can confirm the following
1. It occurs on Firefox 133.0.3 (latest version)
2. It occurs even without a custom style in your yaml files: you can just edit the source of the RTE element and type something like<p> <a class="btn btn-primary" href="t3://page?uid=current">Hello World </a> </p>3. if you change the class into a non-Bootstrap one, e.g.
<a class="btn-custom>, the issue does not occur
4. The error does not seem to occur on Chrome
5. regardless of class written, at each save the CE I got the error (Only Firefox)Content-Security-Policy: The page settings have blocked the execution of a JavaScript “eval” (script-src) because it violates the following directive: “script-src 'self' 'nonce-SFgyg7UZgBg4GCd-dYa28cLYG0O1WrxITgVyivCcmiJqoz_VGECAxg' 'report-sample'” ('unsafe-eval' not present) ckeditor5-inspector.js:1:33690I don’t know if this is related or just happens on my TYPO3 instance
-
Riccardo De Contardi changed Related to #106061 <span data-processor="relativetime" data-value="2025-02-03T10:26:21+00:00" > 02/03/25, 10:26 </span>
-
Christoph Runkel commented <span data-processor="relativetime" data-value="2025-02-03T10:56:02+00:00" > 02/03/25, 10:56 </span>
It is a bug in CKEDITOR since Typo3 12.4.25 but is easy to solve while the issue is open:
1) Add a editor_custom.css in your config.yaml
editor:
config:contentsCss:
– “EXT:yourextension/Resources/Public/Css/editor_custom.css”In this editor_patches.css file add:
a.btn, a.another_affected_class {user-select:auto !important}
Problem should be solved.
-
Gerrit Code Review pushed patch set 1 for main to change 88007 status
Needs FeedbackUnder Review <span data-processor="relativetime" data-value="2025-02-04T10:20:05+00:00" > 02/04/25, 10:20 </span> -
Gerrit Code Review pushed patch set 1 for 13.4 to change 88028 <span data-processor="relativetime" data-value="2025-02-05T08:06:20+00:00" > 02/05/25, 08:06 </span>
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 88029 <span data-processor="relativetime" data-value="2025-02-05T08:06:35+00:00" > 02/05/25, 08:06 </span>
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2025-02-05T08:20:10+00:00" > 02/05/25, 08:20 </span>Applied in changeset commit:3849cef1545f54a4aca1fbbf36252fdf9f6584d3.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2025-12-02T14:37:06+00:00" > 12/02/25, 14:37 </span>
Sounds a bit like it may conflict with “btn” backend usage. If you call the class something like “custom-btn” does it work then? That would help to pinpoint the problem.