sibiraj-s / ngx-editor

🖋️ Rich Text Editor for angular using ProseMirror
https://sibiraj-s.github.io/ngx-editor/
MIT License
423 stars 182 forks source link

[Bug]: Ordered List and Unordered List does not show numbering or bullet points. #485

Closed fitterfly-jainam closed 10 months ago

fitterfly-jainam commented 10 months ago

What happened?

I have integrated Ngx Editor and it seems that the ordered list and unordered list does not show up. When I was debugging, I found that the "start" attribute of "ol" element returns NaN and due to that the problem occurs mostly. Can you please check on it? Screenshot 2023-07-17 at 10 50 06 AM

Version

v15.3.0

Angular Version

v14.3.0

What browsers are you seeing the problem on?

Chrome

Link to reproduce

No response

Relevant log output

No response

Willing to submit a PR?

None

sibiraj-s commented 10 months ago

The editor doesn't add start attribute.

You can find a working example here ngx-editor.stackblitz.io

fitterfly-jainam commented 10 months ago
Screenshot 2023-07-17 at 9 31 17 PM

For some reason, I'm getting bullet points and numbered list like this. I don't know what is the issue here. Can you help @sibiraj-s

fitterfly-jainam commented 10 months ago

Hi @sibiraj-s, I found the issue. The padding from the left side was not proper due to which it was unable to show the list numbers and bullet points. I increased the left and right padding and it shows now. Thanks anyways!

sibiraj-s commented 10 months ago

Glad you figured it 🎉

github-actions[bot] commented 9 months ago

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in the thread.