fix handleBeforeInput on v3 of draft plugins editor; #62
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This fixed the
setEditorState is not a function
bug for my setup.In the plugins editor the
handleBeforeInput
changed,eventTimeStamp
was added.https://github.com/draft-js-plugins/draft-js-plugins/blob/93f9d32b703cf8e65e3576a5803388b362d19ba5/draft-js-plugins-editor/src/index.d.ts#L65
Updated dependencies and especially the
draft-js-plugins-editor
and added the propertyeventTimeStamp
in theindex.js
Not really sure if this was everything.
Tested in an app with multiple editors on the same page and different draft js plugins.
Versions of the app tested:
That's why the dependency version range is tightened, as e.g. draft-js-plugins-editor 3 needs React 16.3 as minimum.
As temporary fix I published the changes as draft-js-md-keyboard-plugin
Would be great if someone checks it also and I hope this help!