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 )
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
| Status: | new → confirmed |
|---|
comment:2 Changed 12 years ago by
comment:3 Changed 12 years ago by
| Description: | modified (diff) |
|---|

You can use below as workaround:
tpl = new CKEDITOR.template( '{foo}, \\n {bar}' ); console.log( tpl.output( { foo: '1', bar: '2'} ) );