Skip to content
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

Container Switching #38

Open
salmenf opened this issue Jul 13, 2023 · 0 comments
Open

Container Switching #38

salmenf opened this issue Jul 13, 2023 · 0 comments
Assignees
Labels

Comments

@salmenf
Copy link
Member

salmenf commented Jul 13, 2023

Some nodes in the model are containers, for example the built-in lists and headings. Furthermore, widgets can also work as containers with slots.
Authors should be able to switch between (compatible) types of containers.

How can this be implemented?
Fundamentally, there is a target node and zero or more original nodes which need to be fit inside the target node.

  1. Parse and resolve the target node's content expression. This yields a content tree in which the original nodes can be fitted.
  2. Based on the content, find a way to fill the target node with the original nodes. Try several strategies for this:
  3. If there are no original nodes: Insert an empty target node (with default content according to spec).
  4. If there are one or more original nodes: Try to fit???
@salmenf salmenf added core enhancement New feature or request for teachers labels Jul 13, 2023
@salmenf salmenf self-assigned this Jul 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant