prosemirror-dev-tools icon indicating copy to clipboard operation
prosemirror-dev-tools copied to clipboard

[Discussion] Make prosemirror-dev-tools as a browser extension.

Open ocavue opened this issue 6 years ago • 4 comments

Currently, prosemirror-dev-tools is a npm package. Maybe we can make it as a browser extension, like react-devtools and vue-devtools.

Benefits:

  • Don't neet to Injecte project. prosemirror-dev-tools is based on React. That means users have to install react and react-dom to use this tool, even their projects don't need react. By making a browser extension, developers won't need to install React as well as prosemirror-dev-tools itself, which make the project dependencies clearer.
  • Isolation. The dev tools won't float above the website. Instead, it will keep in the devtools window.

Costs:

  • Study curve. I haven't created a browser extension as big as prosemirror-dev-tools before. Write a browser extension is some kind of challenge. I may build a prototype to check the feasibility of this idea if I have some free time in the next few weeks.
  • Multi browsers support. Although Chrome is the most popular browser in the world, Firefox also has a lot of users. If we create extensions for both Chrome and Firefox, this project will become more complex and need extra working.

ocavue avatar Oct 13 '19 08:10 ocavue

Hi, Thanks for raising this. There are actually attempts to do it. Some of my coworkers are actually working on implementing this, I hope they will finish it soon. Though there are some technical issues with dev tools being a browser extension, namely: serialising plugin states is not always possible as there might be non-serialisible properties (functions), prosemirror state itself has circular dependencies, etc... It's all solvable but takes time...

d4rkr00t avatar Oct 13 '19 09:10 d4rkr00t

Cool! Looking forward to it. Thank you so much for your guys' amazing work, really appreciate it.

ocavue avatar Oct 13 '19 09:10 ocavue

Have you made any progress on this? Is it coming together for you? Thanks!!

MO-Movia avatar Jun 10 '20 02:06 MO-Movia

https://discuss.prosemirror.net/t/prosemirror-developer-tools-chrome-extension/5154

neatcoding avatar Mar 02 '23 11:03 neatcoding