2625
Views
9
Comments
Solved
[CKEditor] Config
Question
ckeditor
Web icon
Forge asset by CKEditor Team
How can i use the 'Configuration' parameter of the CKEditor webblock, i want to use a more simplefied toolbar. more like the Toolbar of this forum:


 
the default of CKEditor is now:


2024-12-15 23-37-56
Thiago Mágero
Solution

After many years, to stay registered.
The way you requested...

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor'],
]"
2019-09-23 09-06-19
Alvaro Pinilla Pedroche

Thiago Mágero wrote:

After many years, to stay registered.
The way you requested...

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor'],
]"

Hi,

There is a mistake. You need to skip the last comma to parse the JSON correctly!

Regards

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor']
]"


2012-08-01 17-33-40
Gerry
Specify your configuration parameters in the Config parameter.
See attached config.txt for an example.

Get more information from the CKEditor documentation.

config.txt
2024-12-17 14-32-59
Matthias Preuter
 
MVP
I have tried it, but when i copy the content of the config.txt into the config parameter, the editor isn't working anymore. 
2012-08-01 17-33-40
Gerry
Make sure all the quotes are intact and/or try to scale down the parameters to only what you need (e.g. toobar). Upload an example if you are still having problems.
2018-06-01 14-37-59
Rebecca Hall
Here are the parameters we are using for simplified editor:

"toolbar:[
        ['Source','-','Preview'],
        ['Cut','Copy','Paste','PasteText','PasteFromWord','-', 'SpellChecker', 'Scayt'],
        ['Undo','Redo','-','Find','Replace','-','RemoveFormat'],
        ['Link','Unlink','Anchor'],
        ['Image', 'Table','HorizontalRule','CreateDiv'],
        ['Maximize', 'ShowBlocks'],
        '/',
        ['Styles','Format','Font','FontSize'],
        ['Bold','Italic','Underline'],
        ['NumberedList','BulletedList','-','Outdent','Indent'],
        ['JustifyLeft','JustifyCenter','JustifyRight','JustifyBlock'],
        ['TextColor','BGColor']  
    ]"
2024-12-17 14-32-59
Matthias Preuter
 
MVP
Thanks Rebecca, that did work!



(I removed Font and FontSize)

UserImage.jpg
Lawrence Arielle .
How can I add LineHeight to the toolbar?

I want the CKEditor to adjust the typing when entering a new line
just like this.

not like this.

it goes right here skipping one line.
2022-06-15 18-44-48
Karen McCarthy

Why in config.txt is the value for scayt_autoStartup inside ' '?  Isn't true a boolean value?

Should it be this instead? 

scayt_autoStartup: true,

 ( ' ' omitted).

2024-12-15 23-37-56
Thiago Mágero
Solution

After many years, to stay registered.
The way you requested...

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor'],
]"
2019-09-23 09-06-19
Alvaro Pinilla Pedroche

Thiago Mágero wrote:

After many years, to stay registered.
The way you requested...

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor'],
]"

Hi,

There is a mistake. You need to skip the last comma to parse the JSON correctly!

Regards

"toolbar:[
    ['Font','FontSize'],
    ['Bold','Italic','Underline'],
    ['NumberedList','BulletedList','-','Outdent','Indent'],
    ['TextColor']
]"


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.