Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

Make it work on RichTextFields in Wagtail 2.x #1

Open
tomdyson opened this issue Oct 29, 2018 · 3 comments
Open

Make it work on RichTextFields in Wagtail 2.x #1

tomdyson opened this issue Oct 29, 2018 · 3 comments

Comments

@tomdyson
Copy link

Great plugin! It currently doesn't work on RichTextFields in Streamfields in Wagtail 2.x.

@mikemonteith
Copy link
Contributor

I can create custom buttons with window.drafttail.registerPlugin, but I can't find a way to hook into draftail's (and draft-js) handleBeforeInput handler to do text replacement as a user types. Any ideas?

@tomdyson
Copy link
Author

@thibaudcolas any ideas?

@thibaudcolas
Copy link

handleBeforeInput will be available for third-party extensions through springload/draftail#83, which I've been working on.

I think those replacements should be a built-in feature of the editor though (springload/draftail#113), thoughts and PRs welcome! 😬

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants