Ckeditor font size

Asked

Viewed 578 times

4

I’m using Ckeditor and would like to personalize my editor.
When opened, by default it would already come with Arial font size 20 for example.

In my research (amid several others, and others, and others, etc....), found ways to change the configuration to ALL the editors (or create a Gambi in the configuration file for a specific), but I would like to make such change only to a specific editor in a beautiful way with Jquery.

I got the following:

 $("#MeuEditor").ckeditor({
      height: 350,

      // Isso não Funciona:
      font_defaultLabel: 'Arial',
      fontSize_defaultLabel : '20'
  });

Nobody knows how to fix it?

  • 1

    I searched and didn’t find it either, but I did it another way - I created a config.js file and configured the font and font-size pointing to a textarea, and created another config2.js containing the default settings. It worked. Note: it is not common to do this, test and see.

  • Dude, I could never style just one textarea. Whenever I changed one, I had to change the other one too (if there were two textareas on the page). For example, if I wanted a textarea with a number of formatting buttons and another texarea with another amount, I could not.

1 answer

0

Inside the Ckeditor folder, it has a file called Contents.css, in this file you can change font type, color, size, among other things of your textarea.

The worst is that I had already tried to style the information in the textarea in that file, but I could not see the changes I had made because of the history, that’s when I had the genuineness to try in another browser.

Source

Browser other questions tagged

You are not signed in. Login or sign up in order to post.