question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Let plugins extend `State` schema

See original GitHub issue

Plugins 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:closed
  • Created 6 years ago
  • Reactions:6
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

7reactions
AlbertHilbcommented, Apr 3, 2017

Perfect! 😊 I’m going to create it in the next days.

2reactions
soulwirecommented, May 4, 2017

Any progress on this @AlbertHilb? This kind of behavior would be very useful for something I’m working on too…

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found