You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 6, 2023. It is now read-only.
It is exposed in order to allow server side rendering - see #822 and #796 for context
Goals:
Add documentation for this new prop. We would merge the PR for updated documentation when releasing v0.10.1.
Add inline comments around 'editorKey' explaining the use a bit. That PR could be merged any time.
I would close this issue after those two are done. But there are some bonus items that we might discuss in the comments:
We should also document a potential 'gotcha' with this prop: If the 'editorKey' is found in text that is copy-pasted then Draft will think that it is an internal paste. I have manually tried to find any bugs this would cause but it doesn't seem to interfere with copy-pasting from within or outside of the Draft editor. But let's look into this and be sure that no issues will be caused.
We might also consider if there is another solution. I don't have ideas off the top of my head but it seems like there could be another way to deal with this issue. Expecting people to set the 'editorKey' prop seems really unintuitive.