draftjs Questions
1
I want to implement something like a tag editor. However, it's meant just for those tags so I want the user to see the autocomplete suggestions popup without having to type something like @ or #, j...
Milomilon asked 4/1, 2018 at 10:41
1
Solved
hi I'm trying to create a react contenteditable div component that works like an input field but with some additional features that I want to implement, but since there are just few features, I wan...
Lafrance asked 12/1, 2018 at 7:12
2
I am trying to replace the last insert in Draft.js
For example,
Orignal string -> aaazzz
After inserting 'bbb' in the middle -> aaabbbzzz
Replace last insert by 'ccc' -> aaaccczzz
Replace...
Thad asked 26/10, 2017 at 23:41
1
I am attempting to implement a DraftJS editor that highlights words in a transcription while its recorded audio is playing (kind of like karaoke).
I receive the data in this format:
[
{
transcr...
Beginner asked 18/8, 2017 at 19:1
0
Let's go straight to the problem.
I have editor full of entities, custom renderers etc and I'm trying to add Background color functionality.
I'm looking for a way to render selected block inside...
Thionic asked 13/3, 2017 at 11:32
1
Solved
I'm new to draftjs and I was wondering if there was a way to render my custom components inline in the editor.
I have a string with twitter handles. I use the decorator to detect regex @[{handle}]...
1
I've list of emojis. Each of them has its own unicode. With Modifier.insertText(), I would like to insert them to the text.
_addEmoji(text) {
const { editorState } = this.state;
const selection...
3
Solved
I'm trying to have a function run only when the contentState itself has changed, not just the editorState.
My idea right now would be to store the old contentState as a string and compare it to th...
Limelight asked 27/8, 2016 at 15:16
1
Solved
I'm using Draft.js to implement a text editor. I want to save the content of the editor to a DB and later retrieve it and inject it in an editor again, e.g. when revisiting the editor page.
First,...
Indraft asked 17/9, 2016 at 15:12
1
Solved
What's the best way to add an empty unstyled block, let's say last, to a Draft.js editor without changing the SelectionState?
2
Solved
I would like to cancel input and clear the field in my app when the user types the escape key. We tried testing for e.which === 27 in the keyBindingFn, but that function is never even invoked when ...
Citrate asked 15/7, 2016 at 17:29
2
I want to use draft.js in my project. It has its own css which I also need to import. In the documentation it is said:
This CSS should be included when rendering the editor, as these styles
set...
1
Solved
Is there a "correct way" to detect if I lose focus of a Draft.js editor?
The use case is, that I want "quit editor mode" if the user clicks elsewhere which means that I toggle the readOnly prop of...
Thermal asked 3/7, 2016 at 9:15
1
Has anyone tried to port DraftJs with React Native. Any ideas how to do it?
https://github.com/facebook/draft-js/issues/138
Johannejohannes asked 28/7, 2016 at 3:5
0
I am new on Draft-JS and able to create a decent enough text editor for my consumption, But I need to add a UL list with LI items at the bottom of my Textarea by coding.
I have tried using Import ...
Liebermann asked 27/6, 2016 at 10:36
© 2022 - 2024 — McMap. All rights reserved.