Skip to content
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

BUG在切换编辑器或者卸载编辑器时,会出现编辑器变为textarea的情况 #45

Open
XiaYaXia opened this issue Mar 1, 2020 · 1 comment

Comments

@XiaYaXia
Copy link

XiaYaXia commented Mar 1, 2020

if (this.ueditor) {
this.ueditor.destroy();
window.UE.delEditor(this.containerID);
}
是不是要删除下dom呢?
?

@XiaYaXia
Copy link
Author

XiaYaXia commented Mar 1, 2020

if (this.ueditor) {
        this.ueditor.destroy();
        window.UE.delEditor(this.containerID);
        let child = document.getElementById(this.containerID)
        if(child){child.parentNode.removeChild(child);}
       
      } 

完美解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant