froala / wysiwyg-editor

The next generation Javascript WYSIWYG HTML Editor.
https://www.froala.com/wysiwyg-editor
Other
5.3k stars 675 forks source link

Explicit style definitions for certain text elements? #4525

Closed dmt0 closed 1 week ago

dmt0 commented 2 years ago
Expected behavior.

Ordered and unordered lists to be styled correctly.

Actual behavior.

It's quite normal to use some kind of reset.css when building a web app. Those often reset the way lists are styled. Could be a good idea to define things like list-style for ol and ul elements, as opposed to relying on user agent styling. I ended up doing this workaround in my code:

.fr-wrapper {
  ul {
    list-style: disc;
  }
  ol {
    list-style: decimal;
  }
}
Steps to reproduce the problem.

(Describe the steps to reproduce the problem here. A jsFiddle is awesome when possible.)

Editor version.

"react-froala-wysiwyg": "^4.0.13"

OS.

not relevant

Browser.

all browsers

Recording.

(A recording showing how to reproduce the problem)

ilyaskarim commented 1 week ago

We’re closing this issue due to inactivity. If you’re still experiencing this problem on the latest version of our editor, please feel free to reopen the issue and let us know. You can find details on the latest updates here: Froala Editor Changelog.