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

feat: Allow array of extensions for enableInputRules and enablePasteRules #2119

Merged
merged 1 commit into from
Nov 18, 2021

Conversation

aguingand
Copy link

Context

In multiple project I wan't to enable only input / paste rules I need but there is no easy way to do it. (e.g I only want to paste links)

Feature

Allow to pass an array of extension or extension name for enableInputRules and enablePasteRules editor options:

new Editor({
  extensions: [
    StarterKit,
    Link,
  ],
  enablePasteRules: [Link],
  enableInputRules: ['horizontalRule'],
})

Comment

I will update docs if it's ok for you 👍

@philippkuehn philippkuehn merged commit 3158c37 into ueberdosis:main Nov 18, 2021
@philippkuehn
Copy link
Contributor

Thanks!

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