Should default text-align property have icons?
hi @benvmatheson all you have to do is include fontawesome in your project and add the class Names reference for font awesome: https://www.w3schools.com/icons/fontawesomeiconsintro.asp i.e _if you want to put your own icons also its possible with css className or you can use any other librarys like font awesome librar...
Read full answer below ↓Question
If styleManager is left out of the configuration, the default includes text-align with icons showing the choices.

If I include a styleManager configuration and add text-align, it uses words instead.

Should this be the case since it's a "built in" property, or do I still need to manually add the icons?
Answers (2)
hi @benvmatheson all you have to do is include fontawesome in your project and add the class Names
reference for font awesome: https://www.w3schools.com/icons/fontawesome_icons_intro.asp
i.e
{
property: 'text-align',
defaults: 'left',
list: [
{ value: 'left', name: 'Left', className: 'fa fa-align-left' },
{ value: 'center', name: 'Center', className: 'fa fa-align-center' },
{ value: 'right', name: 'Right', className: 'fa fa-align-right' },
{ value: 'justify', name: 'Justify', className: 'fa fa-align-justify' }
],
},
if you want to put your own icons also its possible with css className or you can use any other librarys like font awesome library
@benvmatheson I preferred not to bind the font-awesome dependency (that I still hope to remove soon) to the property factory
Related Questions and Answers
Continue research with similar issue discussions.
Issue #3369
FEAT: is it possible add a relative offset for the colorpicker
for example: I add a left bar and top bar outside the editor. I know the colorpicker's position is relative the body, so is it possible add...
Issue #3380
Default properties not selected in styleManager
Hello dear, can you know why default properties is not selected in style manager ?? What event can I trigger to update this ??
Issue #2381
[QUESTION] Is it possible to add info modal on the editor
Hi, I would like to add on the grapejs editor a clickable questionmark we can click so we could give information on what does this specific...
Issue #4600
After Update to 0.20 from 0.19 the error Cannot assign to read only property 'defaults' of object '[object Object]' occurs
GrapesJS version [X] I confirm to use the latest version of GrapesJS What browser are you using? chrome Reproducible demo link none Describ...
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 →Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.