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 -

How to Change swipe Tab Title color in java Android -

Using globs in Perl replace one liner in TCL script -