Contribute to this guide

General HTML Support

With the General HTML Support (GHS) feature, developers can enable HTML features that are not supported by any other dedicated CKEditor 5 plugins. GHS lets you add elements, attributes, classes, and styles to the source. It also ensures this markup stays in the editor window and in the output.

# Demo

Use the Enhanced source code editing feature toolbar button Enhanced source code editing to view and edit the HTML source of the document. You can find the configuration of this snippet below the demo.

You can configure the General HTML Support feature using the config.htmlSupport property. With this property, you need to list the HTML features that should be handled by GHS.

HTML playground

This demo presents a limited set of features. Visit the feature-rich editor example to see more in action.

# Additional feature information

Here are some examples of HTML features that you can enable using General HTML Support:

  • The
    ,
    , and
    elements.
  • The , , and