I have just spent sometime trying to figure out why the lists were not working within the RichTextEditor..
The tailwindcss preflight defaults were the cause removing all basic defaults.
I have applied these in the tailwind.css file to get around the issue, but maybe something like this should be in the
file so no others have this issue.
Code snippet:
.e-rte-content li { margin-bottom: 10px !important; padding: unset !important; } .e-rte-content ul { list-style-type: disc !important; padding: unset !important; margin-left: 40px; } .e-rte-content ol { list-style-type: decimal !important; padding: unset !important; margin-left: 40px; } .e-rte-content ol[style*="list-style-type: upper-alpha"]{ list-style-type: upper-alpha !important; padding: unset !important; margin-left: 40px; } .e-rte-content ol[style*="list-style-type: lower-alpha"]{ list-style-type: lower-alpha !important; padding: unset !important; margin-left: 40px; } .e-rte-content ol[style*="list-style-type: upper-roman"]{ list-style-type: upper-roman !important; padding: unset !important; margin-left: 40px; } .e-rte-content ol[style*="list-style-type: lower-roman"]{ list-style-type: lower-roman !important; padding: unset !important; margin-left: 40px; } |
OK this works I guess, I don't know why you are requiring the use of !important, this isn't needed if this css is placed in the tailwind.css file?
Also why are you using padding: unset and margin-left as the defaults, instead of padding-inline-start: 40px?
Is this for ie compatibility?
Where is your documentation for this on
Also using @apply list-desc etc is a better alternative for use with tailwind as this will use any custom style set in the tailwind config?