-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
instanceRef.current is undefined #191
Comments
I get the same issue, any idea how to fix it? LE: I have managed to get my hand on the data by using it like this
Now to be honest I don't think is the right way(I'm a beginner) but let me know a better solution LE: Yeah that solution won't work, It made me confused but it will display the default value only and when you make changes it won't update. Hopefully there is a fix soon LE: I have fixed it, try this
|
Try: #190 (comment) @codigoisaac @quatre29 It works for me in NextJS after doing this. |
@quatre29 @AlbinoGeek I just switched to TinyMCE (best decision ever). Thanks, guys. |
Huge mistake, but you do you. EditorJS generates structured JSON describing blocks, TinyMCE generates HTML soup the likes of which we haven't seen since Adobe DreamWeaver, and/or copy-pasting Rich Text from Microsoft Word into a website... the output is completely different, and much worse. However, I'll admit, TinyMCE lets you do more, because it's plain HTML. Consider a Google around
Ultimately, if it's no longer your problem, consider closing the issue. |
I'm a beginner and to be honest, I have a hard time implementing a rich text editor that works with embedded videos, uploading images etc. EditorJS is awesome but has a lot of bugs. Do you think WYSIWYG editors would make the application slower? Also do you experience flickering screen page with react-editor-js? |
TLDR, my editor is open source, you could just use that."" fixed link to "" fixed link to point at WIP branch We would love fellow contributors! Regarding "Bugs"Honestly, if you follow the two step instructions in my workaround here, there are very few bugs remaining. EditorJS is actively maintained, and the only bugs I've run into so far are relatively minor (like scrolling suppressed when Regarding "Uploading images"I've not implemented uploading images yet (that image is by URL), although Regarding "WYSIWYG editors are slow"Yes, WYSIWYG editors are very slow, in the sense that they generate "tag soup" (sometimes even invalid HTML, with lots of embedded Since you're a self-professed beginner, consider the following: And in general, if you're allowing "random users" to use your editor, then avoid any editor which allows users to copy-paste or hand-enter raw HTML code, as this is the root of all evil when it comes to content exploits. By contrast, EditorJS outputs JSON, not HTML -- and by default, doesn't allow HTML. Regarding "Flickering"
The only issue I experienced similar to this is when the insertion caret (text pointer) is above where you are trying to scroll, EditorJS (not There are some default CSS rules in EditorJS itself that you might want to override to reduce this flickering, or due to quality of life / stylistic choices:
|
@AlbinoGeek I see, and you have good points, but I tried some editors (draftjs, quill, editorjs), and TinyMCE was and it's being the best experience. I needed to implement image upload and image resize, and it simply was so painful to find information and to implement it with others, and none of them has image resize, except TinyMCE and Draftjs-plugins - but Draftjs-plugins has a documentation that doesn't work and Draftjs is being discontinued by Facebook... With TinyMCE things just worked and we could move on to actually building our software. |
Environment
Describe
I'm trying to get the data when hitting save. But I get this error:
Unhandled Rejection (TypeError): Cannot read properties of undefined (reading 'save')
I followed this example and this other one (both I found in other issues), but nothing seems to work.
My code:
When I press the button:
The text was updated successfully, but these errors were encountered: