plate icon indicating copy to clipboard operation
plate copied to clipboard

editableProps.renderPlaceholder is not work

Open BBSQQ opened this issue 2 years ago • 4 comments

Description

Steps

Sandbox

https://codesandbox.io/s/sandpack-project-forked-9qvh1v?file=/App.tsx

Expectation

Environment

  • slate:
  • slate-react:
  • browser: chrome

BBSQQ avatar Jul 04 '22 04:07 BBSQQ

Where that prop comes from?

zbeyens avatar Jul 04 '22 11:07 zbeyens

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. image

BBSQQ avatar Jul 05 '22 01:07 BBSQQ

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.

BBSQQ avatar Jul 05 '22 01:07 BBSQQ

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

zbeyens avatar Jul 05 '22 14:07 zbeyens