Not able to use colors(TextColor,BGColor) and styles(Font,FontSize) in toolbar
This is not related to the GrapesJS core library and probably not even the plugin. Check the CKEditor documentation please (you might missing some plugin)
Read full answer below βQuestion
Hi artf,
I am adding colors and styles section in toolbar. I am able to see other sections but not colors and styles in the editor.
"gjs-plugin-ckeditor": { position: "center", options: { toolbar: [ { name: 'styles', items: ['Font', 'FontSize'] }, { name: 'basicstyles', items: ['Bold', 'Italic', 'Strike', '-', 'RemoveFormat'] }, { name: 'links', items: ['Link', 'Unlink'] }, { name: 'colors', items: ['TextColor', 'BGColor'] } ] } },
Am I doing anything wrong in the above code. Can you help me out with this? @artf
Thanks in advance.
Answers (1)
This is not related to the GrapesJS core library and probably not even the plugin. Check the CKEditor documentation please (you might missing some plugin)
Related Questions and Answers
Continue research with similar issue discussions.
Issue #2610
Style gets lost on deselecting a component when using rte.exec method
Hi @artf, When setting the backcolor/forecolor (or any other formatting like fontsize, etc) using the RichTextEditor toolbar, the formattin...
Issue #3176
`setStyle` & `setComponents` options parameter not taken into account
Version: 0.16.30 Are you able to reproduce the bug from the demo? [x] Yes [ ] No Steps to reproduce:Open the consoleExecute editor.setCompo...
Issue #1884
Positioning Rich Text Editor where rte.selection() is located
I would like to be able to position the Rich Text Editor toolbar right above the text a user highlights inside of a div/textarea/etc. The r...
Issue #1570
Not able to customize the Export Plugin options
Hi @artf, I tried to customize the options in the grapesjs editor export plugin. But only two options(addExportBtn, btnLabel) works as expe...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.
Browse free plugins βPremium plugins ship with support, regular updates, and production-ready features β save days of integration work.
Browse premium plugins βRelated tutorials
In-depth guides on the same topic.
Tutorial
Building an AI-Assisted Document Engine with Next.js, GrapesJS, and the AI SDK
Transform your static template editor into an intelligent, generative design workspace with Vercel AI SDK, AI Elements and Next.js.
Tutorial
Ship to Production Faster: Whatβs New in GrapesJS Shadcn
Supercharge your page builder! GrapesJS Shadcn adds live drag previews, rich text / commands, dynamic data, and canvas presets to ship to prod faster.
Tutorial
How to Build a Production GrapesJS Editor: The Complete Walkthrough of Brief, Preset, Plugins, and Services
A complete walkthrough of building a production GrapesJS editor: how to choose a preset, pick plugins, and scope setup services without burning a sprint.
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.