Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can I enable colorPicker in old CKEditor5? #16564

Closed
kinju4374 opened this issue Jun 13, 2024 · 1 comment
Closed

Can I enable colorPicker in old CKEditor5? #16564

kinju4374 opened this issue Jun 13, 2024 · 1 comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:question This issue asks a question (how to...).

Comments

@kinju4374
Copy link

How can I enable colorPicker in fontColor and fontBackgroundColor?

I have tried below and it doesn't work for me.

`

// added support for extra fontFamily
	options.editorOptions.fontFamily = {
		 supportAllValues: true
	};
// added numeric support for fontsize
options.editorOptions.fontSize = {
	options: [
            9,
            11,
            13,
            'default',
            17,
            19,
            21
        ],
	supportAllValues: true
};

// enable color picker
options.editorOptions.fontColor = {
    colorPicker :true
};

// table features
options.editorOptions.table = {
    contentToolbar: [
        'tableColumn', 'tableRow', 'mergeTableCells',
        'tableProperties', 'tableCellProperties'
    ]`

except fontColor settings, other options for table, fontSize, fontFamily works fine.

Currently it displays as follows.

image

Could someone please suggest, whether it is possible to do it using js or need to upgrade it to latest version?

@kinju4374 kinju4374 added the type:question This issue asks a question (how to...). label Jun 13, 2024
@Reinmar
Copy link
Member

Reinmar commented Jun 14, 2024

From what I can see, color picker is available since v38.0.0 so that's the earlier version you could turn it on.

It's not possible before. As a workaround, people came up with very rich color pallettes: #1812 (comment)

@Reinmar Reinmar closed this as completed Jun 14, 2024
@Reinmar Reinmar added the resolution:resolved This issue was already resolved (e.g. by another ticket). label Jun 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
resolution:resolved This issue was already resolved (e.g. by another ticket). type:question This issue asks a question (how to...).
Projects
None yet
Development

No branches or pull requests

2 participants