Editor for event type description (#7450)
* add editor for event type description * enable same things for markdownIt * show links in blue * fix placeholder design * format description for event list * limit event descript ot 4 lines in list * shorten event-type description whenever needed * add editor to create event type dialog * fix link title in event type list * Fix overwriting users column when saving event types (#7445) * Only overwrite user column when present * Clean up * Merge branch 'main' into feat/editor-event-type-description * Merge branch 'main' into feat/editor-event-type-description # Conflicts: # apps/web/pages/settings/my-account/profile.tsx * Linting --------- Co-authored-by: CarinaWolli <[email protected]> Co-authored-by: Joe Au-Yeung <[email protected]> Co-authored-by: zomars <[email protected]>
This commit is contained in:
10 files changed
+56
-39
No files matched your search
@@ -30,6 +30,7 @@ export type TextEditorProps = {
|
||||
excludedToolbarItems?: string[];
|
||||
variables?: string[];
|
||||
height?: string;
|
||||
placeholder?: string;
|
||||
};
|
||||
|
||||
const editorConfig = {
|
||||
@@ -67,7 +68,7 @@ export const Editor = (props: TextEditorProps) => {
|
||||
<div className="editor-inner" style={{ height: props.height }}>
|
||||
<RichTextPlugin
|
||||
contentEditable={<ContentEditable style={{ height: props.height }} className="editor-input" />}
|
||||
placeholder=""
|
||||
placeholder={<div className="-mt-11 p-3 text-sm text-gray-300">{props.placeholder || ""}</div>}
|
||||
/>
|
||||
<AutoFocusPlugin />
|
||||
<ListPlugin />
|
||||
|
||||
Reference in new issue
Block a user