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

Add ContentEditor decorator #1645

Merged
merged 1 commit into from
Oct 22, 2019

Conversation

tvdeyen
Copy link
Member

@tvdeyen tvdeyen commented Oct 18, 2019

What is this pull request for?

Adds a ContentEditor decorator so we can make use of Rails collection partial rendering for essence editor partials.

Notable changes

This make it necessary to replace the local content variable with the essence editor partial name. So, for example the EssenceText editor partial now has an essence_text_editor variable instead of a content variable. This variable holds the Alchemy::ContentEditor instance which is a simple delegator to the Alchemy::Content instance.

@tvdeyen tvdeyen added this to the 5.0 milestone Oct 18, 2019
@tvdeyen tvdeyen changed the base branch from master to five October 21, 2019 19:04
@tvdeyen tvdeyen force-pushed the add-content-editor-decorator branch 3 times, most recently from 325d594 to d4f9983 Compare October 21, 2019 20:13
Speeds up element content editor rendering by making use of
Rails collection partial rendering.

Also holds all presenter methods from Content model.
@tvdeyen tvdeyen force-pushed the add-content-editor-decorator branch from d4f9983 to be537fc Compare October 21, 2019 20:24
@tvdeyen tvdeyen merged commit 3cf522a into AlchemyCMS:five Oct 22, 2019
@tvdeyen tvdeyen deleted the add-content-editor-decorator branch October 22, 2019 09:27
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.

1 participant