d4rkr00t / prosemirror-dev-tools Goto Github PK
View Code? Open in Web Editor NEWDeveloper Tools for ProseMirror
Developer Tools for ProseMirror
Shall we add few more groups in history:
Add more information into readme:
Otherwise it leads to unpredictable editor state.
Add ability to save/restore state.
After selecting node using node picker this node should be scrolled into view in state tab
Jest
invariant.js:44 Uncaught Error: addComponentAsRefTo(...): Only a ReactOwner can have refs. You might be adding a ref to a component that was not created inside a component's `render` method, or you have multiple copies of React loaded (details: https://fb.me/react-refs-must-have-owner).
at invariant (invariant.js:44)
at Object.addComponentAsRefTo (ReactOwner.js:68)
at attachRef (ReactRef.js:23)
at Object.ReactRef.attachRefs (ReactRef.js:42)
at ReactCompositeComponentWrapper.attachRefs (ReactReconciler.js:23)
at CallbackQueue.notifyAll (CallbackQueue.js:76)
at ReactReconcileTransaction.close (ReactReconcileTransaction.js:80)
at ReactReconcileTransaction.closeAll (Transaction.js:209)
at ReactReconcileTransaction.perform (Transaction.js:156)
at ReactUpdatesFlushTransaction.perform (Transaction.js:143)
[ ] Unscrollable lists
Button to collapse all uncollapsed nodes in the tree view
E.g. redux devtools
Now logging for attributes doesn't work even though they have the log button next to them
It's currently impossible due to react-tabs. Probably need to change it to another package.
Changing selection generates a whole lot of events and they are mostly useless because document stays the same:
We need a way to collapse this events, but with ability to get them when needed (e.g. when i want to jump back to some selection).
Probably we could even make other visual representation for selection changes.
Browser | Version | Status |
---|---|---|
Chrome | 58.0.3029.81 (64-bit) | ✅ |
Firefox | 53.0 (64-bit) | ✅ |
Safari | 10.1 | ✅ |
IE | 11 | 🚧 |
IE | Edge | ✅ |
Is it even feasible? Do we have access to dom node from prosemirror node?
Add webpack which should build commonjs module out of src folder.
Looks like this module (or one of its dependencies) is using React context without declaring context types? Not sure why it wouldn't have been showing a warning before, but it probably got upgraded to an error for React 16.
Here's a minimal repro case -- I just took the example CodeSandbox setup and updated react
and react-dom
to 16.0.0. https://codesandbox.io/s/jnlljqm3nw
When I try to install this package 'the npm way' I am not able to install v2.0.0. I already tried removing ~/.npm
and local node_modules
, but it always errors with
14 http fetch GET 200 https://registry.npmjs.org/prosemirror-dev-tools 141ms
15 silly registry:manifest no matching version for prosemirror-dev-tools@^2.0.0 in the cache. Forcing revalidation
16 http fetch GET 304 https://registry.npmjs.org/prosemirror-dev-tools 27ms (from cache)
17 silly fetchPackageMetaData error for prosemirror-dev-tools@^2.0.0 No matching version found for prosemirror-dev-tools@^2.0.0
18 silly registry:manifest no matching version for prosemirror-dev-tools@^2.0.0 in the cache. Forcing revalidation
19 http fetch GET 304 https://registry.npmjs.org/prosemirror-dev-tools 20ms (from cache)
20 silly fetchPackageMetaData error for prosemirror-dev-tools@^2.0.0 No matching version found for prosemirror-dev-tools@^2.0.0
in the log. When I run
$ npm install --save-dev prosemirror-dev-tools
npm installs v1.4.0. However, when navigating to the registry page, I get a JSON string back, which clearly states that the latest version is 2.0.0.
Use * instead of version
After bumping my PM version to 0.23 I get the follow error:
ERROR in /~/prosemirror-dev-tools/dist/cjs/state/modules/editor/index.js
Module not found: Error: Cannot resolve module 'prosemirror-model/dist/to_dom' in /node_modules/prosemirror-dev-tools/dist/cjs/state/modules/editor
@ /~/prosemirror-dev-tools/dist/cjs/state/modules/editor/index.js 24:14-54
It appears to be as a result of:
import { DOMSerializer } from "prosemirror-model/dist/to_dom";
In PM v0.23, you should be able to import DOMSerializer directly via 'prosemirror-model'. I'm not sure if that will be backwards compatible with previous PM versions? Was there a reason for importing directly from to_dom in the first place?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.