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 -

python - Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>] error -

php - Webix Data Loading from Laravel Link -