plate
plate copied to clipboard
editableProps.renderPlaceholder is not work
Description
Steps
Sandbox
https://codesandbox.io/s/sandpack-project-forked-9qvh1v?file=/App.tsx
Expectation
Environment
- slate:
- slate-react:
- browser: chrome
Where that prop comes from?
I found this props through this path. It looks like slate.js attributes path through, but when I use the configuration in demo, it doesn't work.
My requirement is that I want to use ReactNode to configuration editor Placeholder when the content is empty, not a placeholder for a single line of plain text.
editableProps
is set here, any idea why it's not working? https://github.com/udecode/plate/blob/cbcbb31d785585b6ca640de617fcd0d2d6605072/packages/core/src/hooks/plate/useEditableProps.ts#L80