Allow onAddMention to pre-process editorState
See original GitHub issueThe onAddMention
is great but it doesn’t allow you to pre-process editorState before adding mention to text.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
EditorState - Draft.js
EditorState is the top-level state object for the editor. It is an Immutable Record that represents the entire state of a Draft editor, ......
Read more >Draft-js get mention position in editorState currentContent
I'm using draft-js-mention-plugin and I'm looking for a method that returns the mention position in the whole text (without using indexOf() ).
Read more >Mention - DraftJS Plugins - High quality plugins with great UX
This plugin allows the user to choose an entry from a list. ... onAddMentionA callback which is triggered whenever the mention is about...
Read more >How to use the draft-js.EditorState.set function in draft-js - Snyk
To help you get started, we've selected a few draft-js.EditorState.set examples, based on popular ways it is used in public projects.
Read more >Draft-js - Saving data to the server - React Rocket
import React, { Component } from 'react'; import { EditorState, ... So let's say we're writing a document editor and whenever change our ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@ericls can’t figure why you need to preprocess ? a user story may help !
reopen if needed