Score:0

How to enable Font Family, Font Size, Font Colour, and Justification?

jp flag

I have installed Drupal 10.0.08. on my Windows 10 PC .It is running on XAMPP framework locally.

When I want to create content (either a Basic Page or an Article node) using CKeditor 5 on Drupal 10.0.8, the menu looks like in the screenshot.

screenshot

I have enabled the full HTML option at the bottom.

I am not able to find any options for:

  • The text font
  • Justification options (right, left, center, justified)
  • Text size

How do I enable them?

Do I have to install other modules to activate those options?

Score:3
id flag
  1. Browse to /admin/config/content/formats.
  2. Click "configure" on the text format you wish to change.
  3. Drag desired toolbar buttons into place.

Buttons not seen there require contributed modules.

Rahul.In avatar
jp flag
thanks,I cannot find font buttons like Ariel Courier etc
id flag
Asking for modules to suggest is against the site rules. I’ve answered the question.
Score:0
in flag

"there is a plugin for that". but it's minimally supported and is not covered by the security police (as of 2023/05). It looks as if another plugin is moving to implement this, too - https://www.drupal.org/project/colorbutton/issues/3291717

However, you can achieve something similar with the 'styles' dropdown

  • add it to the toolbar of your text format in the admin
  • add classes there that reflect your style, like span.arial|Arial
  • in your themes css, add span.arial { font-family:arial }

Optionally, in your theme's ckeditor5-stylesheets (google that), add the same

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.