mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-26 18:24:38 +01:00
I tried using the exact code from the example to be met by errors. The order of arguments in the function example is wrong, it should be use the API described in the [docs](https://docs.slatejs.org/reference/plugins/plugin.html#onbeforeinput). ``` Function onBeforeInput(event: Event, data: Object, state: State, editor: Editor) => State || Void ```