florapdx / florapdx/react-drafts

Support for onChange event?

Open
#31 4 comments 1 reaction 0 assignees View on GitHub
enhancement
Dominant language
JavaScript
Stars
106
Forks
2
PR merge metrics
No merged PRs in 30d

Description

First off let me say WOW this is amazing! The draft-js ecosystem is so fragmented right now and this brings everything together so nicely. Well done!!

Is there support for on an `onChange` event or similar?

The use case being to pass the `content` through props to a "live" preview component as the user types or inserts an image for example.... something like this:

![image](https://user-images.githubusercontent.com/2042031/29992016-df460822-8f5f-11e7-913a-37025eb2d522.png)

_Another question_ (I don't want to bombard your repo with issues that aren't really issues)... Is there a way to set the initial content of the editor based on props? Use case being editing a pre-existing bit of content.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.