@studiocms/html
Introducción
Sección titulada «Introducción»Este plugin habilita el soporte de HTML dentro de StudioCMS.
Instalación
Sección titulada «Instalación»-
Instalar el paquete usando el siguiente comando:
Ventana de terminal npm run studiocms add @studiocms/htmlVentana de terminal pnpm run studiocms add @studiocms/htmlVentana de terminal yarn run studiocms add @studiocms/html -
Tu configuración de StudioCMS ahora debería incluir
@studiocms/html:studiocms.config.mjs import { defineStudioCMSConfig } from 'studiocms/config';import html from '@studiocms/html';export default defineStudioCMSConfig({plugins: [html(),],});
Opciones
Sección titulada «Opciones»type htmlOptions = { sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; };};