RichText Popups not working in Safari and Firefox
See original GitHub issueWhen 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:
- Created 6 years ago
- Comments:8 (3 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
@kaduuuken ok, will close the issue for now.