-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.10 EE GA1, 7.0.0 DXP GA1
-
Fix Version/s: 6.2.X EE, 7.0.0 DXP FP14, 7.0.0 DXP SP3, 7.0.3 CE GA4, 7.0.X EE, Master
-
Component/s: CKEditor
-
Branch Version/s:7.0.x, 6.2.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
Description:
Adding special characters, such as the line separator character: (U+2028), causes javascript errors. This is due to how javascript utilizes this character.
References:
- http://www.fileformat.info/info/unicode/char/2028/index.htm
- https://www.ecma-international.org/ecma-262/5.1/#sec-7.3
Users can insert these line separators, depending on the document editor that they use.
For example, I was able to reproduce this using the pre-installed app called Pages on the macbook. To insert a line separator, simply press "Shift + Enter" instead of "Enter" when going to the next line.
Steps to Reproduce:
Errors in Title Field
- Navigate to Content > Web Content
- Click [+] > Basic Web Content
- Copy into the Title field:
abc 123
- If the string above does not work, generate a string with a line separator if your document editor uses (U+2028) for it's line separator.
- Click Save as Draft.
- Try to edit the article and open the browser console
Errors in Content Field
- Navigate to Content > Web Content
- Click [+] > Basic Web Content
- Copy into the Content field:
abc 123
- If the string above does not work, generate a string with a line separator if your document editor uses (U+2028) for it's line separator.
- Click Save as Draft.
- Try to edit the article and open the browser console
Expected Results: Edit article page loads with the proper title/content fields and no javascript errors.
Actual Results: Cannot edit article (content no longer available) and javascript errors are logged.
- is related to
-
LPS-69750 Further improve HtmlImpl.escape(String, int) performance
- Closed