You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-5Lines changed: 30 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,12 +142,11 @@ Returns an array of rendered blocks.
142
142
- **renderers** - object with 3 groups of renders inline (or style), blocks and entities refer to example for more info
143
143
- **options** - optional settings
144
144
145
-
#### Using style renderer instead of inline
146
-
If provided with a style renderer in the renders, redraft will use it instead of the inline one. This allows a flatter render more like draft.js does in the editor. Redraft also exposes a helper to create the style renderer.
145
+
#### Using styleMap and blockRenderMap instead of inline and block renders
146
+
If provided with a styles renderer in the renders, redraft will use it instead of the inline one. This allows a flatter render more like draft.js does in the editor. Redraft also exposes a helper to create the styles and block renderers.
Consider using a polyfill like [`String.fromCodePoint`](https://github.com/mathiasbynens/String.fromCodePoint) or [`babel-polyfill`](https://babeljs.io/docs/usage/polyfill/)
230
+
231
+
#### Can the multiple spaces between text be persisted?
232
+
Add `white-space: pre-wrap` to a parent div, this way it will preserve spaces and wrap to new lines (as editor js does)
208
233
209
234
## Changelog
210
235
The changelog is available here [CHANGELOG](CHANGELOG.md)
0 commit comments