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

WIP - Initial pass to get attributes in the right location #670

Closed
wants to merge 8 commits into from

Conversation

rondale-sc
Copy link
Collaborator

No description provided.

@rondale-sc
Copy link
Collaborator Author

@mixonic I added the markup section modifier attributes to the 0.3.1 parser/renderer as well as the editor dom for now. What is the policy on updating/backporting the other versions of the parser/rendere?

rondale-sc added 8 commits May 6, 2019 20:36
This sets up the:

- PostNodeBuilder - to pass the attributes through to the MarkupSection
constructor
- 031 Renderer - so that we can properly serialize the mobiledoc
attributes on the section
- 031 Parser - so we can take the above serialized mobiledoc
representation and parse it back into a mobiledoc post
- editor-dom - So that we can actually do something with the attribute
information

It also adds an `_attributable` function that adds our attribute stuff
here.  This will also likely be used inside list sections so that we can
also center lists made outside of markup.

The test with the `debugger` statements in it utilizes all of the above.
At this point we need to:

- Make the section element (in editor dom) actually encode
`data-md-text-align` into an appropriate inline style attribute.
- Update the DOM / Text Renderer
- Flesh out the test some more
- And verify the rest of the build passes
@mixonic
Copy link
Contributor

mixonic commented May 7, 2019

I'm closing this in favor of #682 - I've used this work as a starting point though and it was helpful path-finding! Thanks @rondale-sc 👏

@mixonic mixonic closed this May 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants