diff --git a/packages/neos-ui-ckeditor5-bindings/src/EditorToolbar/Helpers/renderToolbarComponents.js b/packages/neos-ui-ckeditor5-bindings/src/EditorToolbar/Helpers/renderToolbarComponents.js index 24fb15ec08..7b74674f06 100644 --- a/packages/neos-ui-ckeditor5-bindings/src/EditorToolbar/Helpers/renderToolbarComponents.js +++ b/packages/neos-ui-ckeditor5-bindings/src/EditorToolbar/Helpers/renderToolbarComponents.js @@ -31,7 +31,7 @@ export default richtextToolbarRegistry => { const restProps = omit(props, ['isVisible', 'isActive']); const isActiveProp = isToolbarItemActive(formattingUnderCursor, inlineEditorOptions)(componentDefinition); - const finalProps = { + let finalProps = { ...restProps, key: index, isActive: isActiveProp, @@ -41,6 +41,11 @@ export default richtextToolbarRegistry => { [callbackPropName]: e => e.stopPropagation() || executeCommand(commandName, ...commandArgs) }; + // filter out props that are not needed by the component and lead to a render warning + if (commandName === 'code') { + finalProps = omit(finalProps, ['executeCommand', 'formattingUnderCursor']); + } + const Component = component; return ;