decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

Error: Cannot resolve a DOM point from Slate point: {"path":[0,0],"offset":1}

Open cshaa opened this issue 8 months ago • 0 comments
trafficstars

Describe the bug

To Reproduce Paste a formatted text from Google Docs or LibreOffice Writer into a rich text field, then Ctrl+A and Backspace. This causes Slate to crash with the following:

toDOMPoint@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:2695:4436
toDOMRange@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:2695:4616
Ri@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:2701:5161
requireDecapCmsApp/</77713/Dr/<@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:2701:5488
Tu@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:25628
Ec@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:33407
xc@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:33262
Hc@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:32767
Yc@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:43117
ru@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:42451
Ac@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:38879
$a@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:30:3351
requireReactDom_production_min/ja/<@https://example.com/_astro/index.astro_astro_type_script_index_0_lang.hgfkpeYH.js:32:36133

Expected behavior

Screenshots

Applicable Versions:

  • Decap CMS version: [email protected]
  • Git provider: gitlab
  • Browser version: Mozilla/5.0 (X11; Linux x86_64; rv:136.0) Gecko/20100101 Firefox/136.0

CMS configuration

local_backend: false
backend:
  name: gitlab
  branch: main
  auth_endpoint: oauth/authorize
locale: cs
publish_mode: simple
media_folder: public/uploads
public_folder: "#uploads"

cshaa avatar Mar 18 '25 12:03 cshaa