GrapesJS / GrapesJS/ckeditor

How do I get fonts and font sizes to show?

Open
#84 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
110
Forks
107
PR merge metrics
No merged PRs in 30d

Description

In my pluginsOpts I have:
```
'grapesjs-plugin-ckeditor': {
/* ...options */
extraAllowedContent: '*(*);*{*}', // Allows any class and any inline style
allowedContent: true, // Disable auto-formatting, class removing, etc.
enterMode: 2, // CKEDITOR.ENTER_BR,
extraPlugins: 'sharedspace,justify,colorbutton,panelbutton,font',
toolbar: [
{ name: 'styles', items: ['Font', 'FontSize']},
{ name: 'basicstyles', items: ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', 'RemoveFormat'] },
{ name: 'paragraph', items: ['NumberedList', 'BulletedList']},
{ name: 'links', items: ['Link', 'Unlink']},
{ name: 'colors', items: ['TextColor', 'BGColor']},
],
font_names: 'Arial/Arial, Helvetica, sans-serif;' +
'Comic Sans MS/Comic Sans MS, cursive;' +
'Courier New/Courier New, Courier, monospace;' +
'Georgia/Georgia, serif;' +
'Lucida Sans Unicode/Lucida Sans Unicode, Lucida Grande, sans-serif;' +
'Tahoma/Tahoma, Geneva, sans-serif;' +
'Times New Roman/Times New Roman, Times, serif;' +
'Trebuchet MS/Trebuchet MS, Helvetica, sans-serif;' +
'Verdana/Verdana, Geneva, sans-serif',
fontSize_sizes: '8/8px;9/9px;10/10px;11/11px;12/12px;14/14px;16/16px;18/18px;20/20px;22/22px;24/24px;26/26px;28/28px;36/36px;48/48px;72/72px'
}

```
but the fonts do not show. just block-styles in the 'Styles' drop down. How is showing fonts accomplished?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.