payload
payload copied to clipboard
[3.0.0-beta.34] incorrect import of `isHotkey` in richtext-slate plugin
Link to reproduction
https://github.com/AoiYamada/unclaimed-store
Describe the Bug
isHotkey is not a function:
https://github.com/payloadcms/payload/blob/beta/packages/richtext-slate/src/field/RichText.tsx#L18
maybe
import isHotkey from 'is-hotkey'
should be changed to
import { isHotkey } from 'is-hotkey'
after upgrade to payload 3
To Reproduce
Install deps,
then
docker compose up -d
go to
http://localhost:3000/admin/collections/pages
create new page
type anything in the rich text editor will trigger this error like this:
Payload Version
3.0.0-beta.34
Adapters and Plugins
db-mongodb, richtext-slate