Opened 12 years ago

Last modified 12 years ago

#11102 closed Bug

CKEDITOR.template does not accept new line characters — at Version 3

Reported by: Piotrek Koszuliński Owned by:
Priority: Normal Milestone: CKEditor 4.3.2
Component: General Version: 4.0 Beta
Keywords: Cc:

Description (last modified by Piotrek Koszuliński)

This will throw an error:

new CKEDITOR.template( '{foo},\n {bar}' ).output( { foo: 1, bar: 2 } );

Related: #11216.

Change History (3)

comment:1 Changed 12 years ago by Piotrek Koszuliński

Status: newconfirmed

comment:2 Changed 12 years ago by Jakub Ś

You can use below as workaround:

tpl = new CKEDITOR.template( '{foo}, \\n {bar}' );
console.log( tpl.output( { foo: '1', bar: '2'} ) );

comment:3 Changed 12 years ago by Piotrek Koszuliński

Description: modified (diff)
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