Skip to content

Commit e16fa9a

Browse files
committed
feat(docs): Add troubleshooting
1 parent f634d50 commit e16fa9a

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

README.md

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,31 @@ All css classes are consistent, so feel free to use these names in your css:
159159
- `rsw-separator`
160160
- `rsw-dd` (drop down list)
161161
162-
162+
## Troubleshooting
163+
164+
### Style issues: no list item bullets, wrong link styles and so on
165+
166+
[#31](https://github.com/megahertz/react-simple-wysiwyg/issues/31),
167+
[#44](https://github.com/megahertz/react-simple-wysiwyg/issues/44),
168+
[#45](https://github.com/megahertz/react-simple-wysiwyg/issues/45)
169+
170+
RSW editor doesn't isolate its styles from the parent styles.
171+
It's a pretty common case when you use a global reset or normalize styles which
172+
remove bullets or numbers for lists.
173+
To fix that, you should redefine these styles again:
174+
175+
```css
176+
.rsw-ce ul {
177+
list-style: disc;
178+
padding-left: 2em;
179+
}
180+
181+
.rsw-ce ol {
182+
list-style: decimal;
183+
padding-left: 2em;
184+
}
185+
```
186+
163187
## Credits
164188
165189
- Based on

0 commit comments

Comments
 (0)