You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Steps to reproduce:
Choose a long text on your website. At the end of a line, add a non-breaking space before a ponctuation sign (or a word), does it with your keyboard, not with an html entity. Resize the box or the window.
Current behavior:
The ponctuation sign goes at the beginning of the next line. Non-breaking space is replaced. User quickly shout at technical guys or throw the computer through the window !
Code is in /web_editor/static/src/js/rte.summernote.js, look for var exp2 = /(?!([ ]|\u00A0)|^)\u00A0(?!([ ]|\u00A0)|$)/g; (\u00A0 is non-breaking space unicode value).
Expected behavior:
Keep non-breaking space ! allow users to have beautiful and readable text on website ! help tech guys to have a nice day!
The text was updated successfully, but these errors were encountered:
Sorry for having forgotten about this issue. Starting from 15.0, summernote is gone so if the issue is still there this cannot be because of the same code. I tried to reproduce the issue you described both before and after 15.0 (I tried master and 14.0) but my non breaking spaces seem to be kept in both versions. Could you maybe a video of your issue or more exact steps so we can consider the issue?
I'll ping @dmo-odoo who can better handle text editor issues (at least for the 15.0 and above issues) and redirect to the right person if necessary 👍
Thanks for taking the time to report an issue. For Odoo 15 and above, non-breaking spaces are supposed to be preserved. If you notice a situation where they aren't, then I'd be interested to see a video that shows how to reproduce the issue on a 15.0 runbot so that we can work on isolating the issue and fixing it.
Impacted versions:
8, 9, 10, 11
Steps to reproduce:
Choose a long text on your website. At the end of a line, add a non-breaking space before a ponctuation sign (or a word), does it with your keyboard, not with an html entity. Resize the box or the window.
Current behavior:
The ponctuation sign goes at the beginning of the next line. Non-breaking space is replaced. User quickly shout at technical guys or throw the computer through the window !
Code is in /web_editor/static/src/js/rte.summernote.js, look for
var exp2 = /(?!([ ]|\u00A0)|^)\u00A0(?!([ ]|\u00A0)|$)/g;
(\u00A0 is non-breaking space unicode value).Expected behavior:
Keep non-breaking space ! allow users to have beautiful and readable text on website ! help tech guys to have a nice day!
The text was updated successfully, but these errors were encountered: