Aller au contenu

index

Ce contenu n’est pas encore disponible dans votre langue.

function studiocmsHTML(options?: {
sanitize: {
allowAttributes: Record<string, string[]>;
allowComments: boolean;
allowComponents: boolean;
allowCustomElements: boolean;
allowElements: string[];
blockElements: string[];
dropAttributes: Record<string, string[]>;
dropElements: string[];
};
}): StudioCMSPlugin

Defined in: studiocms/packages/@studiocms/html/src/index.ts:23^

Creates the StudioCMS HTML plugin.

This plugin integrates HTML page type support into StudioCMS, providing editor and renderer components. It resolves configuration options, sets up Astro integrations, and registers the HTML page type for rendering.

Optional configuration for the HTML schema.

{ allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; } = StudioCMSSanitizeOptionsSchema

Sanitization options for HTML content. See StudioCMSSanitizeOptionsSchema for details.

Record<string, string[]>

boolean

boolean

boolean

string[]

string[]

Record<string, string[]>

string[]

StudioCMSPlugin

The StudioCMS plugin configuration object.

Renames and re-exports studiocmsHTML