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:
14 files changed
+51
-46
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user