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
Advanced Redactor settings seem to trigger "Leave Site?" warnings #161
Comments
Also running into this issue. Occurs when the field has more than one tag e.g. <p>Test</p>
<p>Test</p> or <p>Test <a href="">link</a></p> Craft Pro 3.2.10 |
We just released Redactor 2.4.0 with a fix for this! |
@brandonkelly I'm still experiencing this issue. |
Can confirm we're also still seeing the issue, but the fix has alleviated the issue in some cases. |
@brandonkelly Any chance we could re-open this issue? I'm still regularly experiencing this in Craft 3.3.10 / Redactor 2.4.0 |
Can someone who is still experiencing this issue please send the following things to support@craftcms.com?
|
@brandonkelly Sent |
Was able to reproduce when the field contained a void tag, where Redactor and HTML Purifier disagree on the syntax that should be used ( The self-closing tag syntax could have been prenormalized from PHP, but we can’t do anything to anticipate what those To get the fix early, change your "require": {
"craftcms/cms": "dev-develop#602679ea534e23838ea03d3bb82552471ebc1d24 as 3.3.13",
"...": "..."
} Then run |
Hi @brandonkelly, can confirm this fixes it for Redactor on our end. But unfortunately we also get the popup on field layouts with the grid field enabled https://plugins.craftcms.com/grid |
@brandonkelly I'm still getting this error pretty regularly. I tested a simple entry with a single Redactor field. I added a 2nd paragraph, then saved. Upon deleting the 2nd paragraph, a This is what the Redactor content looks like when viewing through the "html" option. So it seems like the |
@jsunsawyer And to be clear you definitely updated Craft to |
@brandonkelly Ah, sorry. I just updated to the released version of 3.3.13. I assumed that this fix was included. Let me check it out. |
@stenvdb You’ll have to open an issue at https://github.com/wbrowar/craft-grid/issues about that. |
@brandonkelly Updating to that version worked. Thanks! |
Thanks for fixing this @brandonkelly! |
I'm having this issue years later with version 3.0.4. Adding the text field doesn't make the "Leave Site" notice appear. If I add a link to the text (using the link button in the field's toolbar) then even if no edits are made the "Leave Site" notice appears when you leave the entry editor. |
I just updated a Craft site and all its plugins to the recent versions. As soon as I started testing the site, I experienced "Leave Site?" warning messages when navigating away from any entry that had a populated redactor field.
It seems that any redactor field that has any of the following settings checked (see image) and has at least 2 formatting types (blockquote and h2 for example) will cause this warning message to pop up.
The text was updated successfully, but these errors were encountered: