🤖 Merge PR #46657 react-email-editor: add missing configuration properties by @Adam-Howarth

* Added missing configuration properties for react-email-editor (Unlayer)

The additional properties are defined here: https://docs.unlayer.com/docs/features#emojis

* Missing brace

* Duplicate definition
This commit is contained in:
Adam 2020-08-11 14:05:06 +01:00 committed by GitHub
parent e182b4dfdb
commit 9fc4c8ebb8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 16 additions and 0 deletions

View File

@ -71,6 +71,15 @@ export interface Features {
readonly preview?: boolean;
readonly imageEditor?: boolean;
readonly undoRedo?: boolean;
readonly stockImages?: boolean;
readonly textEditor?: TextEditor;
}
export interface TextEditor {
readonly spellChecker?: boolean;
readonly tables?: boolean;
readonly cleanPaste?: boolean;
readonly emojis?: boolean;
}
export type Translations = Record<string, Record<string, string>>;

View File

@ -121,6 +121,13 @@ class App extends React.Component {
preview: true,
imageEditor: false,
undoRedo: true,
stockImages: false,
textEditor: {
spellChecker: true,
tables: false,
cleanPaste: true,
emojis: true,
},
},
translations: {
en: {