megahertz / react-simple-wysiwyg

Simple and lightweight React WYSIWYG editor
https://megahertz.github.io/react-simple-wysiwyg/
MIT License
119 stars 21 forks source link

UnorderedListIcon not showing #45

Closed lovenangelo closed 1 month ago

lovenangelo commented 1 month ago

Screenshot from 2024-05-11 09-53-20

This is all my configuration for the editor but the bullet points icon is not showing

  <EditorProvider>
                    <Editor
                        containerProps={{
                            style: {
                                height: "250px",
                            },
                        }}
                        {...register("description")}
                        defaultValue={watch("description")}
                        value={watch("description")}
                        onChange={(e) => {
                            setDescription(e.target.value);
                            setValue("description", e.target.value);
                        }}
                    >
                        <Toolbar>
                            <BtnBold />
                            <BtnItalic />
                            <BtnUnderline />
                            <BtnBulletList />
                        </Toolbar>
                    </Editor>
                </EditorProvider>

this is the value on user input

"test


  • test
"

megahertz commented 1 month ago

Check the troubleshooting section https://github.com/megahertz/react-simple-wysiwyg?tab=readme-ov-file#style-issues-no-list-item-bullets-wrong-link-styles-and-so-on