-
Notifications
You must be signed in to change notification settings - Fork 86
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
self._editor is null, Cannot read property 'html' of null, Cannot read property 'set' of undefined #135
Comments
I will send this issue link to the support. |
+1 have send this issue link to the support team |
Will send this link to the support team. Completely unacceptable. |
Using a single config object on several froala elements cause the exception. The bug added by them to fix in the next editor release and they suggest using separate config objects for each editor. |
@Crx4 What if you clone the object? |
@Crx4 didn't work for me :( |
@juliarosales I use "vue-froala-wysiwyg": "^3.1.1-1" version, please check your version. Another workaround: |
yes I have froalaOptions comes from the backend |
@juliarosales Based on repo README, I only use "vue-froala-wysiwyg" dependency, you can try removing the other and use the gist I provided. Or, I guess you have PHP backend, you can try passing your string config json as value with JSON.parse(). |
Same problem here. I created an example: |
The support team got back to me, they are aware of the issue and will resolve it in the next update Also in the meantime, I bypassed the issue by not using the Bootstrap modal. As for the @arwinvdv problem I had a similar issue as well, again related to the same |
@t0milee Thank you for the update. In my example I try to update custom buttons (see line 37 in App.vue). |
I followed the recommendation from @Crx4 and I'm passing the config string as json.
Also when we are using it inside a vue component in a v-for loop for dynamic elements we are cloning the config. and Inside the mounted hook:
and with this solution we could finally get rid off the annoying error on the console. |
Similar to @Crx4 and @juliarosales , this worked for me:
With this schema editor_config can be in the |
Still not fixed yet. The workaround is good but this is just sad that we have to resort to this to get a functioning product. |
Problem still exists for me with 3.2.3. The JSON.parse/JSON.stringify workaround does not work. I can only reproduce it with Firefox, when using multiple editors on the same page and the Devtools are closed. |
Still having this problem in 3.2.6 in Firefox. JSON.parse/JSON.stringify does not work and not seeing this issue in Chrome. |
same problem here |
Same problem here. |
Dude, years later and the problem still exists, this license is such a waste of money |
I'm having the same issue in the latest version ( 4.1 ). :( |
Really, unbelievable. |
The workaround I did was basically using the is mounted pattern. Delay the initialization till after you have mounted the the component. Still ridiculous that I had to do this at all |
Reading this at the 1.10.2024 really makes me sad how can this be a issue sooo long already and still havnt bean fixed? I have this issue too JSON.parse(JSON.stringify(config)) does not help in any way. // Edit: |
Just wanted to consolidate all the issues as it is the same issue plaguing many of us for a year now. Wouldn't be an issue if we didn't pay for support...
#87
#98
#107
#111
#116
froala/wysiwyg-editor#3719
@imuller @pochocho @gabaum10 @nevaan9 @jyyan @wangjacsi @rcheung9 @yellow1912 @nghialamngoc @t0milee @VAUNT @Centrallatice @Crx4 @jaesung2061
The text was updated successfully, but these errors were encountered: