Beginning of work on templates.

This commit is contained in:
Tomas Bures 2018-02-13 23:50:13 +01:00
parent 47b8d80c22
commit 508d6b3b2f
40 changed files with 1685 additions and 1031 deletions

View file

@ -0,0 +1,35 @@
'use strict';
import React from "react";
import {ACEEditor, SummernoteEditor} from "../lib/form";
import 'brace/mode/text';
import 'brace/mode/html'
export function getTemplateTypes(t) {
const templateTypes = {};
templateTypes.mosaico = {
typeName: t('Mosaico')
};
templateTypes.grapejs = {
typeName: t('GrapeJS')
};
templateTypes.ckeditor = {
typeName: t('CKEditor'),
form: <SummernoteEditor id="html" height="600px" label={t('Template content (HTML)')}/>
};
templateTypes.codeeditor = {
typeName: t('Code Editor'),
form: <ACEEditor id="html" height="600px" mode="html" label={t('Template content (HTML)')}/>
};
templateTypes.mjml = {
typeName: t('MJML')
};
return templateTypes;
}