Skip to content
This repository has been archived by the owner on Nov 2, 2023. It is now read-only.

当编辑器中有内容的时候销毁组件会报错 #8

Closed
long-hai-yang opened this issue Sep 22, 2017 · 2 comments
Closed

当编辑器中有内容的时候销毁组件会报错 #8

long-hai-yang opened this issue Sep 22, 2017 · 2 comments

Comments

@long-hai-yang
Copy link

报错信息如下:
Uncaught TypeError: Cannot read property 'lang' of undefined
at UE.Editor.getLang (ueditor.all.js:7893)
at ueditor.all.js:29557
at ZoneDelegate.webpackJsonp.802.ZoneDelegate.invokeTask (zone.js:424)
at Zone.webpackJsonp.802.Zone.runTask (zone.js:191)
at ZoneTask.invoke (zone.js:486)
at timer (zone.js:1512)
如果再销毁组件之前先清空内容,报另外的错,报错信息如下:
ERROR TypeError: Cannot read property 'nodeType' of undefined
at Object.isEmptyBlock (ueditor.all.js:3938)
at UE.Editor.hasContents (ueditor.all.js:7690)
at save (ueditor.all.js:23928)
at ueditor.all.js:23990
at ZoneDelegate.webpackJsonp.802.ZoneDelegate.invokeTask (zone.js:424)
at Object.onInvokeTask (core.es5.js:4140)
at ZoneDelegate.webpackJsonp.802.ZoneDelegate.invokeTask (zone.js:423)
at Zone.webpackJsonp.802.Zone.runTask (zone.js:191)
at ZoneTask.invoke (zone.js:486)
at timer (zone.js:1512)

如果不填充任何内容或者手动切换了源代码视图以后销毁组件就不会报错

@cipchk
Copy link
Owner

cipchk commented Sep 22, 2017

能否提供更多能让我重现的细节,或者使用 plunk 重现这个错误呢?

@cipchk
Copy link
Owner

cipchk commented Feb 27, 2018

长时间未提供更多信息,暂时关闭,若有问题,请重新提交 Issues。

@cipchk cipchk closed this as completed Feb 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants