Fixes formatting issues with lists in event type description and bio (#7505)

* fix ul and ol in editor

* fix imports

* disable list for team about section

* fix event type description in list

---------

Co-authored-by: CarinaWolli <[email protected]>
Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
authored and GitHub committed 2023-03-04 00:20:13 +01:00
1 parent c8b01f6992
commit 47e948fbbc
14 files changed
+51 -46

No files matched your search

+10 -1
View File
@@ -31,6 +31,7 @@ export type TextEditorProps = {
variables?: string[];
height?: string;
placeholder?: string;
disableLists?: boolean;
};
const editorConfig = {
@@ -74,7 +75,15 @@ export const Editor = (props: TextEditorProps) => {
<ListPlugin />
<LinkPlugin />
<AutoLinkPlugin />
<MarkdownShortcutPlugin transformers={TRANSFORMERS} />
<MarkdownShortcutPlugin
transformers={
props.disableLists
? TRANSFORMERS.filter((value, index) => {
if (index !== 3 && index !== 4) return value;
})
: TRANSFORMERS
}
/>
</div>
</div>
</LexicalComposer>
@@ -26,7 +26,7 @@
text-align: left;
border-color: #D1D5DB;
border-width: 1px;
padding: 1px
padding: 1px;
}
.editor-inner {
@@ -37,6 +37,7 @@
overflow: scroll;
resize: vertical;
height: auto;
min-height: 40px;
}
.editor-input {