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
(re)Init Error #430
Comments
Hi, |
Hello, yes i have a custom plugin, it add a button with functionnality of cleaning the content of the editor. |
Please test without custom plugin. |
My Plugin: Where id don't use fileTags property :)
and the plugin in config :
|
This issue is not reproduce. |
Here the code :)
I hope it could help you. Best regards |
Are there any other actions related to the editor? |
Yes, in fact as the sunEditor is created into a Vuejs component, when the component is destroy it also call the "destroy" method of sunEditor. I have also events attach to the editor => "onload","onchange","onkeyDown","onKeyup" and "onPaste". the entire code of the component
|
I tested it in my view project, but it doesn't give any errors. |
i use the lastest on jsdeliver |
Try using the npm. example When is the "destroy" method of the "Ret" component called? Are you using like this? <template>
<Ret>
</template> |
After hard debugging i found why sunEditor return me an error but it's really weird. If i add an array prototype called "_move" like that :
I got an error when i try to reinit sunEditor But if i set my prototype like that :
No errors :) |
|
It's my mistake. |
Thanks ;) |
The 2.31.1 version has been updated. |
As the Terminator said : "No problemo" :) |
Hello,
Here my problem :)
I use sunEditor for one of my dynamic component related to my form builder in vuejs.
The first time when it init it's ok. But when the instance is destroy and when i try to reinitialise it i got :
TypeError: m.fileTags[t].toLowerCase is not a function
at Object._init (suneditor.min.js:9865)
at Object._editorInit (suneditor.min.js:10140)
at A (suneditor.min.js:11737)
at Object.create (suneditor.min.js:11790)
at Object. (suneditor.min.js:11747)
at VueComponent.mounted (js.js:128)
at invokeWithErrorHandling (vue.js:1863)
at callHook (vue.js:4220)
at Object.insert (vue.js:3146)
at invokeInsertHook (vue.js:6341)
But only this error in fact count => suneditor.min.js:9865
It's related to code :
this._fileManager.pluginMap[m.fileTags[t].toLowerCase()] = e
if i put this line into a try catch it's ok.
Do you have any ideas why this line break the init the second time ?
Best regards
( By the way your editor rock!)
The text was updated successfully, but these errors were encountered: