-
Notifications
You must be signed in to change notification settings - Fork 0
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
fix: restore auto-paragraph #412
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Notes for reviewers.
'stylesSet': 'default:/static/js/addons/ckeditor.wysiwyg.js', | ||
'contentsCss': ['/static/djangocms_text_ckeditor/ckeditor/contents.css'], | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Explanation. I must duplicate these two settings from Core-CMS, because settings are not smart enough to merge lists.
@@ -205,6 +205,12 @@ | |||
# https://github.com/django-cms/django-filer/blob/2.0.2/docs/permissions.rst | |||
FILER_ENABLE_PERMISSIONS = True | |||
|
|||
# https://github.com/django-cms/djangocms-text-ckeditor | |||
CKEDITOR_SETTINGS = { | |||
'autoParagraph': True, # Core-CMS had set this to False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Important. This is what is changing. Paragraphs will automatically wrap inline elements upon editing a Text plugin instance.
@R-Tomas-Gonzalez and I double-tested on local and dev. A good page to test was https://dev.tup.tacc.utexas.edu/use-tacc/getting-started/. |
#412 Side Effect: - A `<p>` is added around any Text within a `c-feed-list`. This commit: - Add support for time wrapped in `<p>`. - Retain support for time NOT wrapped in `<p>`.
* hotfix: c-feed-list must support `<p><time/></p>` #412 Side Effect: - A `<p>` is added around any Text within a `c-feed-list`. This commit: - Add support for time wrapped in `<p>`. - Retain support for time NOT wrapped in `<p>`. * hotfix: cleanup and fix c-feed-list further * hotfix: no margin bottom on c-feed-list time & a * hotfix: no margin bottom on c-feed-list time & a … for real * hotfix: remove unnecessary CSS selector
Overview
Allow WYSIWYG to force
<p>
tags.Related
TUP-566
undo feat(settings): wysiwyg should not force <p> tags Core-CMS#574
depends on several Core-Styles PRs
Changes
Testing
Auto-Paragraph Feature
<p>
, no<h1>
):<h1>
,<p>
).<p>
tag.Auto-Paragraph Side-Effects
<a href="…" class="c-button c-button--primary">…</a>
<a href="…"><i class="icon icon-push-right">></i> …</a>
<p>
tag.UI
Auto-Paragraph Feature
Before.mov
Auto-Paragraph Side-Effects
<p>
)<p>
)a.c-button
a > i