Ir al contenido

@studiocms/html

Este plugin habilita el soporte de HTML dentro de StudioCMS.

  1. Instalar el paquete usando el siguiente comando:

    Ventana de terminal
    npm run studiocms add @studiocms/html
  2. 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(),
    ],
    });
type htmlOptions = {
sanitize: {
allowAttributes: Record<string, string[]>;
allowComments: boolean;
allowComponents: boolean;
allowCustomElements: boolean;
allowElements: string[];
blockElements: string[];
dropAttributes: Record<string, string[]>;
dropElements: string[];
};
};