index
Esta página aún no está disponible en tu idioma.
Functions
Section titled “Functions”studiocmsHTML()
Section titled “studiocmsHTML()”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.
Parameters
Section titled “Parameters”options?
Section titled “options?”Optional configuration for the HTML schema.
sanitize?
Section titled “sanitize?”{
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.
sanitize.allowAttributes?
Section titled “sanitize.allowAttributes?”Record
<string
, string
[]>
sanitize.allowComments?
Section titled “sanitize.allowComments?”boolean
sanitize.allowComponents?
Section titled “sanitize.allowComponents?”boolean
sanitize.allowCustomElements?
Section titled “sanitize.allowCustomElements?”boolean
sanitize.allowElements?
Section titled “sanitize.allowElements?”string
[]
sanitize.blockElements?
Section titled “sanitize.blockElements?”string
[]
sanitize.dropAttributes?
Section titled “sanitize.dropAttributes?”Record
<string
, string
[]>
sanitize.dropElements?
Section titled “sanitize.dropElements?”string
[]
Returns
Section titled “Returns”StudioCMSPlugin
The StudioCMS plugin configuration object.
References
Section titled “References”default
Section titled “default”Renames and re-exports studiocmsHTML