Opened 12 years ago
Closed 12 years ago
#11236 closed Bug (duplicate)
Widget templates with newlines cause errors
| Reported by: | Mathieu Rene | Owned by: | |
|---|---|---|---|
| Priority: | Normal | Milestone: | |
| Component: | General | Version: | |
| Keywords: | Cc: |
Description
I noticed some js errors while integrating a widget. CKEDITOR.template() does not escape newline characters before feeding it to Function(), which results in errors such as "Unexpected token ILLEGAL".
Adding .replace(/\n/g, "
n") seems to do the job for me, thought I'd let you guys know.
Change History (1)
comment:1 Changed 12 years ago by
| Component: | UI : Widgets → General |
|---|---|
| Keywords: | template removed |
| Resolution: | → duplicate |
| Status: | new → closed |
| Version: | 4.3.1 (GitHub - master) |

DUP of #11102.