ErangaLakmal
ErangaLakmal
I used the emoji and the mention plugins together in my Editor. When I am using , `convertToRaw(contentState)` to save my content data into the db, it shows an error...
I have two question. 01. We can not use square bracket here. 02. Where do we declare the compositeDecorator . In the constructor or render function. Tried several ways. It...
@mzbac Thank you for commenting. What I mean is. I should have a place to define the strategies. I mean the following part. Can you please explain bit more. ```...
Correct. I tried this method. The contentBlock variable which is in the following line is not properly set. ``` function findWithRegex(regex, contentBlock, callback) { const text = contentBlock.getText(); ``` Becase...
Correct. I have done that thing too. I am using "#" tag as the mention trigger. Forget about all. And lets assume I am using "$" as the decorator. `HANDLE_REGEX...
Here I added my code to a sample git repo. https://github.com/erangakapukotuwa/draft-js-sample/blob/master/EditorField.js Please check.
Thank You very much for your patient @mzbac . I'll check.
Cool. This is worked for me. Thank you for commenting.
hmm.. I found what is the problem. We have to add `` container `DIV` out from the `` container `DIV`. ex: - ` { this.editor = element; }} placeholder="Type in...