Opened 10 years ago

Closed 10 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 10 years ago by Piotrek Koszuliński

Component: UI : WidgetsGeneral
Keywords: template removed
Resolution: duplicate
Status: newclosed
Version: 4.3.1 (GitHub - master)

DUP of #11102.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy