roam-toolkit icon indicating copy to clipboard operation
roam-toolkit copied to clipboard

Better block creation

Open dalmo3 opened this issue 6 years ago • 1 comments

#19 failed to account for many edge cases. Especially regarding empty blocks - just pressing the same keys would give wildly different results.

Needed to add a series of DOM functions to find a block's surroundings. Caveat: rebuilt dom.js and it now needs to be imported as an object elsewhere.

Also first experiments with detectChange to confirm those actions. For now it just waits for any mutation after save.

dalmo3 avatar Feb 29 '20 00:02 dalmo3

I think this can be improved with the new ability to query the db directly (specifically querying for children/etc)

Stvad avatar Mar 21 '20 03:03 Stvad