-
Notifications
You must be signed in to change notification settings - Fork 11
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
Provide a way for site builders to include theme css in paragraphs preview #183
Labels
Comments
@laryn I've got a PR for this. It was fairly easy to implement, borrowing from ckeditor module. The rest is up to the site builder. Perhaps a section could be put into the wiki if this is accepted. |
Nice idea, I like this @herbdool. |
@laryn thanks. And it won't impact anything else. It only includes the css file if the themer included it intentionally. |
laryn
pushed a commit
that referenced
this issue
Jul 12, 2024
@herbdool I've merged this. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If someone is using the paragraphs preview, there is no easy way for most site builders to add some css that will show up when editing content. I tend to have the paragraphs display the content preview. I'm including a separate css stylesheet with the
hook_field_widget_form_alter()
. The stylesheet can live in the default theme and it will be inserted when editing the node. Looks like:But...it might be nice to allow someone to include a line in the theme.info file like what is done with ckeditor:
paragraphs_stylesheets[] = css/paragraphs-style.css
.UPDATE: the PR does provide what CKEditor does. It will only attempt to include a stylesheet if it exists, that is, added with a
paragraphs_stylesheets[]
entry in the theme.info
file.The text was updated successfully, but these errors were encountered: