* add first version of text editor * add new editor to email body * fix line height * remove not needed styles * allow adding html tags + small refactoring * fix error when input is empty * styling of add variable dropdown * fix bg on focus * small design fixes * improve design * show error message for no input * text editor only for email body * remove test button * code clean up * code clean up * code clean up * fix that added variables weren't saved * fix import * first version of editor * connect reminder body of form with new editor * add pencile for link-editor * remove TreeViewPlugin * clean up css file * code clean up * add text indent for list * improve editor design * fix style * slow resizing of editor * fix that new data was removed when leaving tab * dont allow italic and bold at same time * code clean up * fix type error * code clean up * code clean up * remove text if changed from SMS to email or other way around * add add variable dropdown * show error message if email body is empty * add white-space pre-wrap * fix import * prettier * fix add variable dropdown for mobile * move dependencies to correct package.json file * remove html-to-text Co-authored-by: CarinaWolli <wollencarina@gmail.com>
25 lines
492 B
TypeScript
25 lines
492 B
TypeScript
const exampleTheme = {
|
|
placeholder: "editor-placeholder",
|
|
paragraph: "editor-paragraph",
|
|
heading: {
|
|
h1: "editor-heading-h1",
|
|
h2: "editor-heading-h2",
|
|
},
|
|
list: {
|
|
nested: {
|
|
listitem: "editor-nested-listitem",
|
|
},
|
|
ol: "editor-list-ol",
|
|
ul: "editor-list-ul",
|
|
listitem: "editor-listitem",
|
|
},
|
|
image: "editor-image",
|
|
link: "editor-link",
|
|
text: {
|
|
bold: "editor-text-bold",
|
|
italic: "editor-text-italic",
|
|
},
|
|
};
|
|
|
|
export default exampleTheme;
|