Integrated CKEditor for templates. We might need to move it to a sandbox later to make it secure.

This commit is contained in:
Tomas Bures 2018-02-24 21:59:00 +01:00
parent 508d6b3b2f
commit ba75623f86
5 changed files with 129 additions and 110 deletions

View file

@ -863,7 +863,9 @@ class CKEditor extends Component {
return wrapInput(id, htmlId, owner, props.format, '', props.label, props.help,
<CKEditorRaw
onChange={evt => owner.updateFormValue(id, evt.editor.getData())}
events={{
"change": evt => owner.updateFormValue(id, evt.editor.getData())
}}
content={owner.getFormValue(id)}
config={{width: '100%', height: props.height}}
/>