Jyoti Puri
Jyoti Puri
Opening file browser already works, check this: https://github.com/jpuri/react-draft-wysiwyg/blob/master/stories/ImageUpload/index.js.
Editor is extensible in way that it allows adding new toolbar options. You can use it as controlled component and do any changes to editor state. Custom block rendering functions...
Image resize is currently not supported.
This can be done using `editorStyle` or `editorClassName`. Simply setting css `font-size` will change font-size of the editor.
Good point, its missed. Atm you can do that by selecting font-size from dropdown. This default font-size information is required to be added to all the blocks, I will try...
Default font-size can be changed by using editorStyle or editorClassName. Trouble atm is that its not saved in editor-content. A work around could set default size of font while displaying...
Hey @sachinkammar : defaultFont size can be set as described here: https://github.com/jpuri/react-draft-wysiwyg/issues/551#issuecomment-352435105 I still need to add it to options.
@niaofei2008: you need to provide your own api to editor for image upload and plug it in using a callback.
![screen shot 2017-02-13 at 8 48 34 am](https://cloud.githubusercontent.com/assets/2182307/22869952/3ec3b4e6-f1c9-11e6-9385-2bdeb0385882.png) Works for me, what kind of image are you uploading ?
@Uysim: which lib did you used to re-generate draftjs state. Another important thing, I strongly recommend not converting content to html just for saving it. Save it in JSON and...