Nova Ckeditor
  • 🏁Getting Started
    • Introduction
    • Installation
    • Support Us
    • License
    • Demo
  • 🚀Basic Usage
    • Usage
    • Notes
  • ⚙️Advanced Usage
    • Customize ImageStorage
    • Integrating NovaFileArtisan (Larupload) with Image Resource
    • Customize AudioStorage
    • Customize FileStorage
    • Multiple Toolbars
    • Customize Toolbar Items
    • Media Embed
    • CkEditor Field Options
      • Toolbar
      • Height
      • Limit On Index
      • Content Language
      • Force Paste as Plain Text
      • Alert Before Unsaved Changes
      • Text Part Language
      • General HTML Support
      • Group Items In Overflow Mode
      • Image Browser
      • Audio Browser
      • Video Browser
      • File Browser
      • Snippets
    • Configuration
      • Video Model
      • Image Model
      • Memory
      • Max Image Quality
      • Image Max Width
      • Image Max Height
      • Image Naming Method
      • Image Processing Library
      • Audio Naming Method
      • File Naming Method
      • Toolbars
        • Default Toolbar
        • Toolbar 1
          • Height
          • Items
          • Options
          • Content Lang
          • Force Paste as Plain Text
          • Alert Before Unsaved Changes
          • UI Language
            • UI Language Name
            • UI Language Script
          • Text Part Language
          • General HTML Support
          • Group Items In Overflow Mode
          • Image Browser
          • Audio Browser
          • Video Browser
          • File Browser
          • Insert Image Types
          • Insert Image Size
          • Snippets
  • ⚪Other
    • Migration
    • Credit and Thanks
Powered by GitBook
On this page
Edit on GitHub
  1. Advanced Usage
  2. Configuration
  3. Toolbars
  4. Toolbar 1

General HTML Support

toolbars.toolbar-1.html-support

Property Name
Type
Default

toolbars.toolbar-1.html-support

array

This option enables the General HTML Support ("GHS") feature within the toolbar NovaCkeditor field. This feature allows you to enable HTML features that are not supported by any other dedicated CKEditor 5 plugins.

With the General HTML Support feature, you can add elements, attributes, classes, and styles to the editor's source and ensure that this markup remains preserved in both the editor window and the output. This provides greater flexibility for incorporating custom HTML elements and attributes within your content.

To configure the General HTML Support feature within Toolbar 1, update the value of toolbars.toolbar-1.html-support in the config/nova-ckeditor.php file with the desired array of HTML support settings.

Example:

<?php

return [    
    'toolbars' => [
        'toolbar-1' => [
            'html-support' => [
                'allow' => [
                    [
                        'name'    => 'div',
                        'classes' => true,
                    ],
                    [
                        'name' => '/^(div|section|article)$/'
                    ]
                ],

                'disallow' => []
            ]
        ],
    ]
];
PreviousText Part LanguageNextGroup Items In Overflow Mode

Last updated 1 year ago

For more detailed information on using the General HTML Support feature, refer to the .

⚙️
CKEditor 5 documentation on General HTML Support