Added MJML/HTML codeeditor with a preview for template design.
This commit is contained in:
parent
c7d7b1fe0c
commit
7e52000219
24 changed files with 887 additions and 279 deletions
11
client/src/lib/sandboxed-codeeditor-shared.js
Normal file
11
client/src/lib/sandboxed-codeeditor-shared.js
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
'use strict';
|
||||
|
||||
export const CodeEditorSourceType = {
|
||||
MJML: 'mjml',
|
||||
HTML: 'html'
|
||||
};
|
||||
|
||||
export const getCodeEditorSourceTypeOptions = t => [
|
||||
{key: CodeEditorSourceType.MJML, label: t('MJML')},
|
||||
{key: CodeEditorSourceType.HTML, label: t('HTML')}
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue