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 - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -