plate
plate copied to clipboard
[P-187] Plate Element Toolbar / Copy pasing will cause the applicaiton to crash.
Description
Going to this example in plates documentation, if you try to 1. use the toolbar elements at all, 2. copy all the values, you will see it either will not work, or will crash the sandbox with the error Cannot resolve a Slate point from DOM point: [object HTMLDivElement],11 This is repeatable.
Steps
- Head on over to this example.
- Try to use the toolbar.
- To crash, try copying all the information inside of the editor.
Sandbox base sandbox here
Interesting enough, the sandbox seems to allow elements to be updated, but copy pasting still crashes.
Expectation Copying the editor value should work as intended, as well as toolbar values on the website should be working properly.
Environment
- slate: 0.85.0
- slate-react: 0.85.0
- browser: firefox, chrome
Looks to be fixed in https://platejs.org/