JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

[notice] Lot notices are flooding our sentry #1405

Closed Identity-labs closed 1 day ago

Identity-labs commented 6 months ago

Describe the bug

TypeError: c._editorRange is not a function at f.onMouseDown_wysiwyg(./node_modules/suneditor/src/lib/core.js:6812:25) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1662:29) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

TypeError: Cannot read properties of undefined (reading 'cloneNode') at c.newNode(./node_modules/suneditor/src/lib/core.js:3649:21) at c.nodeChange(./node_modules/suneditor/src/lib/core.js:3315:105) at Rpe.applyColor(./node_modules/suneditor/src/plugins/modules/_anchor.js:40:17) at Rpe.submit(./node_modules/suneditor/src/plugins/modules/_anchor.js:35:58) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1674:33) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

May be this one is fixed in last minor version TypeError: Cannot read properties of undefined (reading 'nextSibling') at c._setDefaultFormat(./node_modules/suneditor/src/lib/core.js:6503:55) at f.onKeyUp_wysiwyg(./node_modules/suneditor/src/lib/core.js:8054:29) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1662:29) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

TypeError: Cannot read properties of null (reading 'firstChild') at f.element(./node_modules/suneditor/src/lib/core.js:7976:64) at f.length(./node_modules/suneditor/src/lib/core.js:7181:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1662:29) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

TypeError: Cannot read properties of undefined (reading 'cells') at nge.table.colSpan(./node_modules/suneditor/src/plugins/submenu/table.js:890:61) at nge.table.editTable(./node_modules/suneditor/src/plugins/submenu/table.js:845:41) at nge.table.onClick_tableController(./node_modules/suneditor/src/plugins/submenu/formatBlock.js:190:39) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1674:33) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

TypeError: Cannot read properties of null (reading 'parentNode') at c._resetRangeToTextNode(./node_modules/suneditor/src/lib/core.js:1574:80) at c.nodeChange(./node_modules/suneditor/src/lib/core.js:3091:43) at Dpe.applyColor(./node_modules/suneditor/src/plugins/modules/_selectMenu.js:55:9) at Dpe.pickup(./node_modules/suneditor/src/plugins/modules/_selectMenu.js:43:64) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1674:33) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

TypeError: Cannot read properties of undefined (reading 'collapsed') at c._rangeInfo(./node_modules/suneditor/src/lib/core.js:1458:13) at f._setToolbarOffset(./node_modules/suneditor/src/lib/core.js:6865:67) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:402:31) at zone._inner.onInvokeTask(./node_modules/@angular/core/fesm2022/core.mjs:11070:33) at _ZoneDelegate.invokeTask(./node_modules/zone.js/fesm2015/zone.js:401:60) at Zone.runTask(./node_modules/zone.js/fesm2015/zone.js:173:47) at ZoneTask.invokeTask(./node_modules/zone.js/fesm2015/zone.js:483:34) at invokeTask(./node_modules/zone.js/fesm2015/zone.js:1631:18) at globalCallback(./node_modules/zone.js/fesm2015/zone.js:1674:33) at globalZoneAwareCallback(./node_modules/zone.js/fesm2015/zone.js:1695:16)

To Reproduce I don't know to to reproduce it, it's happening during normal usage

Expected behavior No error

Desktop (please complete the following information): Chrome

Smartphone (please complete the following information): Windows

Additional context Suneditor : ^2.46 Angular 16