콘텐츠로 이동

index

이 콘텐츠는 아직 번역되지 않았습니다.

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