Steps to reproduce
- Create a formatted text field with a maxlength
- Enable Force truncate and Safe truncate html
- Use an unordered list to reach the character limit
The field will continue to gain and lose focus, flashing repeatedly.
Proposed solution
Seems like the issue is how WYSIWYG treats new lines. Wysiwyg will by default convert \r\n to \n when being inserted into wysiwyg. Not sure why we want to enforce \r\n for as a new line in the JS. We need to make some handling of this or change this behavior altogether
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 2932007-2.patch | 1.52 KB | googletorp |
Comments
Comment #2
googletorp commentedPatch with fix. This might require specific markup in the WYSIWYG to be an issue, I've seen this be an issue when reaching max char when creating an unordered list.
Comment #3
cedeweyI've tested this and it does indeed resolve the issue. I'm marking this RTBC and will have a developer double check the code before quality before committing.
I've also updated the title for clarity.
Comment #4
cedeweyComment #5
cedeweyComment #7
hipp2bsquare commentedNice work, Jakob. At long last, we've committed your patch to the project. Thank you!