Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numbered and Bullet lists are not working #31

Closed
T3chnoMaciej opened this issue Nov 8, 2023 · 7 comments
Closed

Numbered and Bullet lists are not working #31

T3chnoMaciej opened this issue Nov 8, 2023 · 7 comments

Comments

@T3chnoMaciej
Copy link

Hi!
I'm using this software in a Next.js 13.5.6 app, in a client component. Every function works fine except for lists , that dont'
Here's my code:
`
"use client";
import { useState } from 'react';
import { BtnBold, BtnItalic, Editor, EditorProvider, Toolbar, BtnNumberedList, BtnBulletList, BtnUnderline} from 'react-simple-wysiwyg';

export default function NotesComponent() {
const [notesValue, setNotesValue] = useState('Start typing...');

function onChangeEditor(e) {
    setNotesValue(e.target.value);
}

return(
    <EditorProvider>
        <Editor value={notesValue} onChange={onChangeEditor} >
            <Toolbar>
                <BtnBold />
                <BtnUnderline />
                <BtnItalic />
                <div className="rsw-separator" />
                <BtnNumberedList />
                <BtnBulletList />
            </Toolbar>
        </Editor>
    </EditorProvider>
)

}

`

@megahertz
Copy link
Owner

It works fine in my local environment with Chrome 118.0.5993.88. Which browser do you use?

@T3chnoMaciej
Copy link
Author

Hi, thanks for the reply. I use Chrome 116 on macOS. I'll check after update.

@megahertz
Copy link
Owner

megahertz commented Nov 14, 2023

So, it looks like the issue isn't related to a browser. I would appreciate it if you could create a simple project that reproduces the issue

@T3chnoMaciej
Copy link
Author

T3chnoMaciej commented Dec 5, 2023

Hi,

Sorry for the late reply, I was short on time lately. Here you go: I created a simple project with this problem in a repo . I hope it helps and we can eliminate this bug. Tested on 2 more browsers, same effect.

Cheers,
M

@megahertz
Copy link
Owner

Thank you. I'll take a look in the beginning of the next week.

@megahertz
Copy link
Owner

These buttons work fine, but the global style in next.js/tailwindcss prevents the list from being displayed correctly.

/* /_next/static/css/app/layout.css?v=1702231607245 */
ol, ul, menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

@T3chnoMaciej
Copy link
Author

Thank you for your time, I will debug in my code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants