reactjs - Draftjs: Query if entity of type "x" exists in content -


i'm using draft-js in chat client building. have created custom entity allows users "@" mention other users. if user "@" mentioned, want send them notification. there way in draft-js query current editor state , ask if there entities matching type? nice if data entity well.

please check official tweet example. {props.children} of custom component mentioned.


Comments

Popular posts from this blog

javascript - Feed FileReader from server side files -

c++ - What's the differece between of link to a dynamic file and as a input object? -

Android Unit Testing / Mockito: android.location.Location not mocked -