You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When interacting with the CKEditor component, specifically clicking on the editor and attempting to type, the following React warnings are triggered:
Warning: React does not recognize the executeCommand prop on a DOM element.
Warning: React does not recognize the formattingUnderCursor prop on a DOM element.
Root Cause
These warnings occur because the executeCommand and formattingUnderCursor props are passed directly to DOM elements within the CKEditor component. React does not recognize these as valid DOM attributes, leading to unnecessary warnings in the console.
Steps to Reproduce
Take care that editorOptions: formatting:code is true (for instance, test with Neos.Demo)
Open a page and create a text content node
Click inside an inline editable
Expected behavior
No, react errors in the console.
Actual behavior
Affected Versions
Neos: 8.3
UI: 8.3
The text was updated successfully, but these errors were encountered:
This change addresses React warnings related to invalid DOM attributes:
- Removed `executeCommand` and `formattingUnderCursor` from being passed to DOM elements.
- Ensured these props are only handled within components where they are relevant, preventing them from being incorrectly rendered on DOM elements.
These update prevent unnecessary warnings in the console.
Resolves: neos#3894
markusguenther
changed the title
React warnings regarding unrecognized properties rendered to the DOM
TASK: React warnings regarding unrecognized properties rendered to the DOM
Dec 10, 2024
Description
When interacting with the CKEditor component, specifically clicking on the editor and attempting to type, the following React warnings are triggered:
Root Cause
These warnings occur because the executeCommand and formattingUnderCursor props are passed directly to DOM elements within the CKEditor component. React does not recognize these as valid DOM attributes, leading to unnecessary warnings in the console.
Steps to Reproduce
editorOptions: formatting:code
is true (for instance, test with Neos.Demo)Expected behavior
No, react errors in the console.
Actual behavior
Affected Versions
Neos: 8.3
UI: 8.3
The text was updated successfully, but these errors were encountered: