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

Sharing Content Styles Between Frontend and Backend #117

Closed
Brand3000 opened this issue Mar 15, 2024 · 2 comments
Closed

Sharing Content Styles Between Frontend and Backend #117

Brand3000 opened this issue Mar 15, 2024 · 2 comments

Comments

@Brand3000
Copy link

Hi! I'm wondering if there's an easy way to connect all the classes from ckeditor to the front-end of the website templates.
I tried connecting the /nova-api/styles/field-ckeditor css file and spanned the external tag with the ck-content class in my template, but it didn't do the trick.
For example, applying the Tiny font style, ckeditor add the text-tiny class which is somewhere inside the code according to the Chrome inspector.

@mostafaznv
Copy link
Owner

Hi @Brand3000,

I believe this workaround would be suitable for your needs. Take a look at it here:
https://ckeditor.com/docs/ckeditor5/latest/installation/advanced/content-styles.html

@Brand3000
Copy link
Author

It really does, thank you

@mostafaznv mostafaznv changed the title Supporting classes for the front-end Sharing Content Styles Between Frontend and Backend Mar 16, 2024
@mostafaznv mostafaznv pinned this issue Mar 16, 2024
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

No branches or pull requests

2 participants