Open SanIbme opened 1 year ago
Hello Jodit Team and Community, I've had this issue opened for a few weeks now. Can someone please look into this? I noticed that @xdan has been closing issues. I hope it's ok I tag you here. Please let me know what I can do to have this issue looked at and what's the right way to request help so I can get support? Thank you.
Hello Jodit Team and Community, I noticed there was an issue https://github.com/xdan/jodit/issues/799, which was closed. It seems I'm having similar issue, so not sure if the bug has returned. Can someone please help? Thank you.
Update: I used css to resolve this issue, but it would be better if this feature worked out of the box. So it's still a bug and should be resolved. Hope someone will be able to follow up and fix this.
config
Hi @SanIbme what CSS changes you did to get is working? Please let me know as well as I am not able to load Unordered dot or default in the editor.
Thanks.
Hi @Prashant117, Below are the styles in my scss file I used with the container id for the editor. I used id instead of class because it works with more specificity. Somehow when I try to use the className in the editor this does not work, so used id instead. Hope this helps!
// two editor containers
#myjoditEditor, #mySecondJoditEditor
{
// text can start 10 px within the editor
.jodit-wysiwyg {
padding-left: 10px;
}
// allows default ul and dot to show up
ul {
list-style: inside;
}
// allows default ol to show up
ol {
list-style: inside;
list-style-type: number;
}
// allows table borders to show up
td {
border: solid 1px;
}
}
Hi @Prashant117, Below are the styles in my scss file I used with the container id for the editor. I used id instead of class because it works with more specificity. Somehow when I try to use the className in the editor this does not work, so used id instead. Hope this helps!
// two editor containers #myjoditEditor, #mySecondJoditEditor { // text can start 10 px within the editor .jodit-wysiwyg { padding-left: 10px; } // allows default ul and dot to show up ul { list-style: inside; } // allows default ol to show up ol { list-style: inside; list-style-type: number; } // allows table borders to show up td { border: solid 1px; } }
Thanks @SanIbme, it worked for me for the time being.
This is still an ongoing bug
Thanks @SanIbme, it worked for me for the time being.
Thank you very much! There were many days looking for a solution to this problem.
Can you please help,how you integrated that into the editor?
Thanks the scss worked for me. i used the className instead of ids and still worked.
This worked for me, this is css code. I'm using jodit react v4.1.2, the user agent set up those styles, but not in my case (I saw it from Jodit's website)
.jodit-wysiwyg ul,
.jodit-dialog__content ul {
list-style-type: disc;
margin: 0;
padding: 0 20px 10px;
}
.jodit-wysiwyg ul ul,
.jodit-dialog__content ul ul {
list-style-type: circle;
}
.jodit-wysiwyg ul ul ul,
.jodit-dialog__content ul ul ul {
list-style-type: square;
}
.jodit-wysiwyg ol,
.jodit-dialog__content ol {
list-style-type: decimal;
padding-left: 40px;
margin-top: 1em;
margin-bottom: 1em;
}
.jodit-wysiwyg ol ol,
.jodit-dialog__content ol ol {
margin-top: 0;
margin-bottom: 0;
}
.jodit-wysiwyg td,
.jodit-dialog__content td {
border: solid 1px;
}
Jodit Version: 3.4.xxxxx jodit-react 1.3.39
Browser: Chrome, Firefox OS: MacOS Sonoma Is React App: True (v17)
Code
Expected behavior: Bullets would appear in editor during edit and once saved.
Actual behavior:
During Edit:
After Edit: