Skip to content
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

rangeCount checking is required before calling getRangeAt() in safari. #36

Closed
phruse opened this issue Mar 8, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@phruse
Copy link

phruse commented Mar 8, 2022

WordPress Editing Mode
Gutenberg

Frontend or Backend Issue
Backend Issue

To Reproduce
when clicking on inline code area is displayed that “This block has encountered an error and cannot be previewed.”.

Screenshots
스크린샷 2022-03-09 오전 12 48 35

Modify
resources/gutenberg/enlighterjs.gutenberg.min.css

... ,t=e&&e.getRangeAt(0), ...

to

... ,t=e&&e.rangeCount>0&&e.getRangeAt(0), ...

Now it will work in safari! 😄

Desktop (please complete the following information):

  • OS: macOS
  • Browser: safari
  • Version: 15.2
@AndiDittrich
Copy link
Member

thanks @phruse

i'll check this soon

@AndiDittrich AndiDittrich transferred this issue from EnlighterJS/Plugin.WordPress Mar 9, 2022
@AndiDittrich AndiDittrich added bug Something isn't working and removed status/validation-pending labels Mar 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants