mostafaznv / nova-ckeditor

CkEditor 5 Field for Laravel Nova with Media & Snippet Browsers
https://mostafaznv.gitbook.io/nova-ckeditor/
MIT License
51 stars 21 forks source link

Sharing Content Styles Between Frontend and Backend #117

Closed Brand3000 closed 6 months ago

Brand3000 commented 6 months ago

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 commented 6 months ago

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 commented 6 months ago

It really does, thank you