I´m trying to add an text from my bean to my pe:ckEditor. This is working, but I would like to add also HTML text etc.
Code: Select all
<p:commandButton global="false" update=":growl"
immediate="true"
onclick="PrimeFaces.widgets.editorWidgetVar.instance.insertText('#{emailReceiverInboxController.email.text'});"
value="TEST" icon="fa fa-copy" />
Code: Select all
<pe:ckEditor widgetVar="editorWidgetVar" width="100%"
value="#{emailReceiverInboxController.email.text}"
height="300"
toolbar="[[ 'Bold', 'Italic', 'Underline', 'TextColor', 'BGColor', 'Undo','Redo' ],[ 'Styles', 'Format', 'Font', 'FontSize' ],
[ 'Image', 'Table' ], [ 'Link', 'Unlink' ],
[ 'NumberedList', 'BulletedList', 'JustifyLeft', 'JustifyCenter','JustifyRight', 'JustifyBlock'], ['Source' ]
]">
</pe:ckEditor>
I got in Firebug this error message:
SyntaxError: '' string literal contains an unescaped line break
Any ideas?