Skip to content
This repository has been archived by the owner on Dec 29, 2022. It is now read-only.

Template Editing #205

Open
1 of 6 tasks
justinfagnani opened this issue Nov 16, 2015 · 0 comments
Open
1 of 6 tasks

Template Editing #205

justinfagnani opened this issue Nov 16, 2015 · 0 comments

Comments

@justinfagnani
Copy link
Contributor

Template editing requires some refactoring of bits to allow for synthetic documents to be loaded into the frame, map operations back to the source document, etc. These are prerequisites for Polymer element editing as well.

The general approach will be to introduce a "document editor" concept that will interpret all commands generated by the stage and the DocumentServer. A SimpleHtmlEditor will just pass through commands. A TemplateHtmlEditor will do the correct mapping.

Synthetic documents need to be generated on the server in order to have the same domain as the rest of the project, and so that relative URLs resolve correctly. After initial load, synthetic documents will be modified in place like source documents.

  • Add designer-template-inspector with "Edit Template" button
  • Add support for edit-template query parameter to project server to generate synthetic document.
  • Rename designer-ui-editor to designer-html-editor
  • Move top-level command handling from designer-app to designer-ui-editor
  • Add SimpleHtmlEditor that handles all commands before passing to designer-document
  • Add TemplateHtmlEditor to transform commands from synthetic to source documents.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant