Open vt0022 opened 2 weeks ago
Hi @vt0022 👋
It seems you have multipage structure?
If yes just add key
prop to YooptaEditor
component.
<YooptaEditor key={page.id} editor={editor} plugins={plugins} tools={TOOLS} marks={MARKS} value={content} />
Let me know if this approach has helped you
I followed your instruction but it seemed not working. The page prop there is just an integer.
I tried this : editor.setEditorValue(JSON.parse(response.data.content));
and everything seems ok.
Thanks for your assistance @Darginec05.
Sorry @Darginec05 Now I encounter another problem. I cannot change the display value of editor. I have a note list and I want that when I click on each note, the editor will display its content. I try to print the editor value and it has changed but it doesn't reflect value on display. How can I resolve this? Sincerely thank you
@vt0022 I'll prepare demo with solution for your case today evening
Hey @vt0022 Did you found any solution for this problem I'm also encountering same issue. If have any update please share !!!
hello @Darginec05 need some help on this
Sorry @Darginec05 Now I encounter another problem. I cannot change the display value of editor. I have a note list and I want that when I click on each note, the editor will display its content. I try to print the editor value and it has changed but it doesn't reflect value on display. How can I resolve this? Sincerely thank you
Hello everyone. Recently, I've been using this useful editor to create note feature for my app. But I encounter a problem: the init value return from API cannot be displayed on the editor. It only display the hard-coded init value. I try many ways but I cannot resolve it. If the value from API is in wrong format, it should display nothing or throw error but nothing happens.