-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does or Can Substance support a "strict" concept of "schema" for documents ? #1124
Comments
Hey @Annakan |
Just some more hints: All models and converters are generated automatically. |
@oliver---- can you provide a updated link? |
Hello
I am returning to exploring substance has great basis for an online / collaborative editor.
I understand that you use the term "schema" in a very loose sense meaning more "collection of node types that can appear in a document" thane "structure of the document tree".
Is is possible (or do you think is is possible to implement ) a more "structured document schema" approach where some node can only appear in the context of some other nodes.
In a naive way this could be implemented by a test function
canAppear(Parent_node_context)
and/or a functionallowedSubnodes()=>list of allowed subnodes types:
.The goal is to allow editing "strongly structured" documents where edition is guided by a schema, allowing for instance to have code-editor like shortcuts
CTRL+space
who display a contextual menu of the allowed sub nodes before continuing edition in place.All of this subnodes would not have a "visual" effect (bold, etc, ) but could have a visual indication. For instance a node could be "law reference" (underlined in yellow) or "actor reference" (underlined in blue) displaying a law book name and position in it, or a the full tittle of a person, while storing a reference to an UUID to it ... etc ...
Maybe I missed this already or maybe substance is lower level and this needs to be build on it ...
Thanks a lot for your time.
The text was updated successfully, but these errors were encountered: