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

Implement card refactor for editor-dom renderer #238

Merged
merged 1 commit into from
Nov 23, 2015

Conversation

bantic
Copy link
Collaborator

@bantic bantic commented Nov 18, 2015

Feedback welcome. Merging this needs to be coordinated with changes to other codebases as described in #235

checklist:

  • test unknownCardHandler usage/defaults for editor

fixes #236

let { card: { name } } = this;
assert(
`Card "${name}" must render dom (render value was: "${rendered}")`,
(typeof rendered === 'object')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps rendered.nodeType is a good check for rendered being a node.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call

@mixonic
Copy link
Contributor

mixonic commented Nov 19, 2015

seems good.

bantic added a commit that referenced this pull request Nov 19, 2015
This is based on the changes to mobiledoc-dom-renderer in
bustle/mobiledoc-dom-renderer#18

This allows rendering, but the cards themselves don't render yet
because ember-mobiledoc-editor doesn't use the updates to mobiledoc-kit
from #238

wip refs #236
@bantic bantic force-pushed the update-editor-dom-card-renderer-236 branch 4 times, most recently from f63a2a7 to fb2fa36 Compare November 23, 2015 18:30
Update cards to be in format expected by dom renderer

This is based on the changes to mobiledoc-dom-renderer in
bustle/mobiledoc-dom-renderer#18

Reorganize demo cards into dom/ html/ and text/ directories

fixes #236
fixes #239

Update html and text renderer dependencies
@bantic bantic force-pushed the update-editor-dom-card-renderer-236 branch from ba6eb61 to 3baafbe Compare November 23, 2015 18:44
bantic added a commit that referenced this pull request Nov 23, 2015
…er-236

Implement card refactor for editor-dom renderer
@bantic bantic merged commit 0332d67 into master Nov 23, 2015
@bantic bantic deleted the update-editor-dom-card-renderer-236 branch November 23, 2015 18:44
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.

Update editor-dom renderer for card rendering
2 participants