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

@ -1,7 +1,10 @@
'use strict';
import React from "react";
import {ACEEditor, SummernoteEditor} from "../lib/form";
import {
ACEEditor,
CKEditor
} from "../lib/form";
import 'brace/mode/text';
import 'brace/mode/html'
@ -19,7 +22,7 @@ export function getTemplateTypes(t) {
templateTypes.ckeditor = {
typeName: t('CKEditor'),
form: <SummernoteEditor id="html" height="600px" label={t('Template content (HTML)')}/>
form: <CKEditor id="html" height="600px" label={t('Template content (HTML)')}/>
};
templateTypes.codeeditor = {