editor.js icon indicating copy to clipboard operation
editor.js copied to clipboard

Can not find a Block from this child Node

Open aromero86 opened this issue 7 years ago • 3 comments

Hi guys, sometimes I get this error:

core.js:14597 ERROR Error: Can not find a Block from this child Node
    at e.value (editor.js:12)
    at e.value (editor.js:22)
    at HTMLDocument.<anonymous> (editor.js:22)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Object.onInvokeTask (core.js:16147)
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:422)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
    at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:498)
    at invokeTask (zone.js:1744)
    at HTMLDocument.globalZoneAwareCaptureCallback (zone.js:1802)

I don't understand how avoid it.

Thank you

aromero86 avatar May 08 '19 11:05 aromero86

Hi again guys, I change something in my code and error disappeared. Sorry for the lack of information :(

aromero86 avatar May 08 '19 21:05 aromero86

Looks like the bug is resolved in this PR?

I do get this error on https://tinynodes-ngx.firebaseapp.com/ngx-editorjs-demo/angular-form

I can reproduce it by clearing a form and then calling save, if the editor was not focused it throws this. Focus the editor and it fixes the issue.

Could this be fixed for the next release @khaydarov @neSpecc?

tanepiper avatar Jun 05 '19 08:06 tanepiper

@tanepiper yes, release is coming in next few days.

neSpecc avatar Jun 05 '19 10:06 neSpecc