Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix editorProps prop is ignored in RichTextInput #8809

Merged
merged 2 commits into from
Apr 11, 2023

Conversation

ArnaudD
Copy link
Contributor

@ArnaudD ArnaudD commented Apr 5, 2023

Hi !

Problem

editorOptions.editorProps is currently ignored in RichTextInput. This makes it impossible to do things like this (customizing ProseMirror className for example) :

<RichTextInput
  editorOptions={{
    extensions: [
      // ...
    ],
    // https://tiptap.dev/api/editor#editor-props
    editorProps: {
      attributes: {
        class: 'my-custom-css-class',
      },
    },
  }}
  // ...
/>

@djhi djhi merged commit 4186a33 into marmelab:master Apr 11, 2023
@djhi djhi added this to the 4.9.2 milestone Apr 11, 2023
@djhi djhi changed the title [RFR] Allow editorProps attribute in RichTextInput editorOptions props Fix editorProps prop is ignored in RichTextInput Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants