plate icon indicating copy to clipboard operation
plate copied to clipboard

[P-187] Plate Element Toolbar / Copy pasing will cause the applicaiton to crash.

Open ninicdennis opened this issue 4 years ago • 1 comments

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

  1. Head on over to this example.
  2. Try to use the toolbar.
  3. 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

P-187

ninicdennis avatar Nov 11 '22 15:11 ninicdennis

Looks to be fixed in https://platejs.org/

zbeyens avatar Jul 07 '23 15:07 zbeyens