Integrated CKEditor for templates. We might need to move it to a sandbox later to make it secure.
This commit is contained in:
parent
508d6b3b2f
commit
ba75623f86
5 changed files with 129 additions and 110 deletions
|
@ -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}}
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue