[editor]: delete unnecessary line of code

the cursor never had an `id` attribute, ever
[editor]: get the parent node of the cursor instead