question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

RichText Popups not working in Safari and Firefox

See original GitHub issue

When I want to set a link in a RichText Field, the Pop-up doesn’t show, instead I get console errors: TypeError: rangy.getSelection is not a function. (In 'rangy.getSelection()', 'rangy.getSelection' is undefined). This happens in Safari and Firefox, in Chrome it seems to work.

I’m using Django 1.11.7, Python 3.61 and Wagtail 1.13.1

I found that replacing the following in the file wagtailadmin/templates/wagtailadmin/pages/_editor_js.html solved the issue:

<script src="https://unpkg.com/rangy@1.3.0/lib/rangy-core.js"></script> instead of <script src="{% static 'wagtailadmin/js/vendor/rangy-core.js' %}"></script>

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kaduuukencommented, Nov 30, 2017

@lb- It is currently local development version, as soon as the server is set up, I would test it there too, that will probably be today or tomorrow.

0reactions
lb-commented, Dec 1, 2017

@kaduuuken ok, will close the issue for now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Pop-up blocker settings, exceptions and troubleshooting
Blocking pop-ups doesn't always work: Although Firefox blocks most pop-ups, some websites may show pop-ups using uncovered methods, even when they are blocked....
Read more >
Format tools or Rich text editors do not work in Firefox
I use Win 7 64 bit and Firefox 16. Problem is that I, and some other users at the forum we belong to,...
Read more >
Guys, I'm going to drop your browser if you don't fix the pop-up ...
Click on the 'Permissions" tab and scroll down to "Open Pop-up Windows". Uncheck "Use Default" and check "Allow". Then close and restart Firefox...
Read more >
Interact with the clipboard - Mozilla - MDN Web Docs
work with images use browser.clipboard.setImageData() to write images to the clipboard and document. · write rich content (such as, HTML, rich ...
Read more >
Pop-up window won't fully display on webpage - Mozilla Support
On bankofamerica.com, when I log in, it asks for acknowledgment and once I give it, a terms and timeout timer window is supposed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found