Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
cshaa opened this issue Mar 18, 2025 · 0 comments
Open

Comments

@cshaa
Copy link
Contributor

cshaa commented Mar 18, 2025

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant