Coder Social home page Coder Social logo

How to add more fonts and font sizes to the editor toolbar? Please help, i am not able to add roboto font as the available options are very less about strapi-plugin-ckeditor5 HOT 4 CLOSED

roslovets-inc avatar roslovets-inc commented on August 14, 2024
How to add more fonts and font sizes to the editor toolbar? Please help, i am not able to add roboto font as the available options are very less

from strapi-plugin-ckeditor5.

Comments (4)

roslovets avatar roslovets commented on August 14, 2024 2

Hi, please follow these steps to configure your editor:
https://github.com/Roslovets-Inc/strapi-plugin-ckeditor5#how-to-customize-editor-optional

To add more fonts uncomment lines 169-182 in config/ckeditor.js template and add your fonts to the list.

And checkout CKEditor docs how to add font sizes via the same config:
https://ckeditor.com/docs/ckeditor5/latest/api/module_font_fontsize-FontSizeConfig.html#member-options

from strapi-plugin-ckeditor5.

aufdenpunkt avatar aufdenpunkt commented on August 14, 2024

Hey, thanks for the great plugin! As I've the same need, it would be interesting how to solve this. 🙂 I've tried different ways without success.

First, I've tried to customize the index.html of Strapi Admin by adding an external stylesheet. But the custom index.html is out of scope of the admin build -> no luck.

The second try was adding the styles to the Strapi GlobalStyle component -> without success.

Are there any other ways?

Thanks and best,
Chris

from strapi-plugin-ckeditor5.

paneer-tikka avatar paneer-tikka commented on August 14, 2024

How do we add new fonts for the latest version of the plugin (strapi-plugin-ckeditor5@latest with strapi v4)? I have tried copying the config file as described here https://github.com/Roslovets-Inc/strapi-plugin-ckeditor5#how-to-customize-editor-optional but it's not working.
I'm guessing these instructions aren't valid for V4? Is there another way to do this in the latest plugin?

from strapi-plugin-ckeditor5.

james-humble-sustainability avatar james-humble-sustainability commented on August 14, 2024

Any update on this one @paneer-tikka ?

from strapi-plugin-ckeditor5.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.