Hey y’all
I have something exciting to show you. So we all know prosemirror-dev-tools, right? Well it has fallen a bit behind times so I rewrote it in Svelte. Basically the same old thing but smaller and with more features. And tests.
https://teemukoivisto.github.io/prosemirror-dev-toolkit/
There are still some improvements that I want to add but since it seems I never get around releasing this, I’ll just do it now before I start working on some new feature.
As a small summary, GitHub - d4rkr00t/prosemirror-dev-tools: Developer Tools for ProseMirror is a great tool for debugging ProseMirror editors. However, it seems it’s not being actively developed that much anymore and it’s written in React which isn’t that nice especially if you are using some other framework.
So my aim was to cut the fluff to minimum and make it work as a web-componenty type of library. This meant scrapping React for something else and I picked Svelte for the job. It’s quite close to web components as it compiles to pure JS but it also provides some pretty nice primitives that appear to make it easier to work with than say LitElement. Been really impressed by it!
Okay that was the main part but I also wanted to add some new features as well. At the moment these are improved logging of the tree-view nodes and snapshot export/import from JSON. Additionally, I have created a script to inject the dev-tools to a live editor which is experimental still. It’s hard to gain access to the editor view without messing things up. Then there are some basic things like Cypress tests and using TypeScript for everything.
Hopefully people find this useful. Finally I myself can too get rid of my local linkings and use the npm package. If you find any bugs or issues please let me know before I go for the first major release.