-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support for using EditorView subclasses #18
Comments
Hi @abingham. Thanks for opening this issue. Yep, I'm not a ProseMirror expert, but I'm not aware of any reason not to extend
I don't have time to do this right now but if you want to do a PR I would be happy to review. Thanks again! |
Sure, I'll try to put something together this morning. Thanks! |
Do you mean |
I started typing it out but then I realized it was easier to just edit the file :) Please see #19. |
That looks great, and quite a bit nicer than what I'd hacked together. Thanks for taking care of this. I definitely learned something! |
Actually, unfortunately there's a TS issue there I'm not seeing how to fix :/ |
... because I was making it way too complicated :). Just pushed what I think should work for you? |
That PR seems to work well for me. |
Looks like it's published. |
Is there any way to use a subclass of
EditorView
instead ofEditorView
itself withuse-prosemirror
? Looking through the code, it looks likeEditorView
is hardcoded, but perhaps I've missed something.If it's not supported, would you consider supporting it? I'm not sure the best way to do it, but perhaps the class could be passed in as a property. I'd be happy to help with a PR, but I like to first make sure I do it in the way you prefer (I'm not a terribly experienced JS programmer, so I may "obvious" approaches).
The text was updated successfully, but these errors were encountered: