Closed yuuminakamura closed 2 years ago
it looks like your initial config is different? What happens if you pass {theme: exampleTheme}
in the initialConfig to the LexicalComposer where you're displaying content?
@acywatson It solved the problem. Thank you very much again✨
const exampleTheme = {
ltr: 'ltr',
rtl: 'rtl',
placeholder: 'editor-placeholder',
paragraph: 'editor-paragraph',
list: {
nested: {
listitem: 'editor-nested-listitem',
},
ol: 'editor-list-ol',
ul: 'editor-list-ul',
listitem: 'editor-listitem',
},
link: 'editor-link',
text: {
bold: 'editor-text-bold',
italic: 'editor-text-italic',
},
};
Lexical version: latest
unordered list will be displayed with PlainTextPlugin same format but not ordered list. It will not have a space in front of the list. I tried to put extra indent in front of ordered list. but it is always displayed without any space.
Editor
Displaying content
code Editor
displaying content code
Saved editer state