#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 12/06/24, 11:02 -
Riccardo De Contardi commented 12/26/24, 15:03
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 02/03/25, 10:26
-
Christoph Runkel commented 02/03/25, 10:56
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 02/04/25, 10:20 -
Gerrit Code Review pushed patch set 1 for 13.4 to change 88028 02/05/25, 08:06
-
Gerrit Code Review pushed patch set 1 for 12.4 to change 88029 02/05/25, 08:06
-
Benjamin Kott commented and changed status
Under ReviewResolved done0 %100 % 02/05/25, 08:20Applied in changeset commit:3849cef1545f54a4aca1fbbf36252fdf9f6584d3.
-
Benni Mack changed status
ResolvedClosed 12/02/25, 14:37
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.