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

How do I get fonts and font sizes to show? #84

Open
grimace opened this issue Jun 14, 2024 · 0 comments
Open

How do I get fonts and font sizes to show? #84

grimace opened this issue Jun 14, 2024 · 0 comments

Comments

@grimace
Copy link

grimace commented Jun 14, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant