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

feat: Inline-editing capability for frontend-editable models #19

Merged
merged 25 commits into from
Sep 29, 2024

Conversation

fsbraun
Copy link
Member

@fsbraun fsbraun commented Sep 25, 2024

Features

  • Inline editor for CharField (no-frills)
  • Auto-detection of inline-editable fields (HTMLFormField and CharField) in both models and plugins
  • Enable inline-editing for models that support {% render_model instance "field_name" "field_name" %} command (renders the named field of the instance and opens an editor with only this field in the frontend) available since django CMS 3.0 - requires their admin to have the FrontendEditableAdmin mixin

Fixes

  • HTML editor size in modals of text plugin
  • Made URL target selection available in HTMLFields
  • Balloon toolbar (for block commands, typically positioned left of the current editing line) now allows for scrolling

Issues

  • Only available in edit mode which for django CMS 4+ only exists for models that register with django CMS core as frontend-editable in their app's cms_config.py

Example

Here's inline-editing for a djangocms-blog object (not using plugins but the post_text model field):
inlnie-fields

@fsbraun fsbraun merged commit f543741 into main Sep 29, 2024
22 checks passed
@fsbraun fsbraun deleted the feat/plugin-inline-editing branch December 12, 2024 21:08
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