Let plugins extend `State` schema
See original GitHub issuePlugins add new functionalities to the editor. Editor State
, therefore, should be able to keep also data related to these new functionalities.
To this aim, maybe, it suffices to add a new field to State
, an Immutable Map
, which can be used by plugins to store their own data.
What do you think?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:9 (8 by maintainers)
Top Results From Across the Web
PostGraphile | makeExtendSchemaPlugin (graphile-utils)
The build argument to the makeExtendSchemaPlugin callback contains lots of information and helpers defined by various plugins, most importantly ...
Read more >Separating state and view plugins - Discuss - ProseMirror
This makes sense for “state plugins”, plugins that use the state argument: ... class StatePlugin<T = any, S extends Schema = any> extends...
Read more >Schema Behaviors | Terraform - HashiCorp Developer
Schemas define plugin attributes and behaviors. Learn about the fields that you can use to define element behaviors in SDKv2.
Read more >5 Essential Schema Plugins for WordPress
Choose among these schema plugins to add to your WordPress site. ... Let's say you want to buy a Darth Maul toy lightsaber....
Read more >How to use the prosemirror-state.Plugin function in ... - Snyk
To help you get started, we've selected a few prosemirror-state examples, based on popular ways it is used in public projects. Secure your...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Perfect! 😊 I’m going to create it in the next days.
Any progress on this @AlbertHilb? This kind of behavior would be very useful for something I’m working on too…