@studiocms/html
이 콘텐츠는 아직 번역되지 않았습니다.
Introduction
Section titled “Introduction”This plugin enables HTML Support within StudioCMS.
Installation
Section titled “Installation”-
Install the package using the following command:
터미널 창 npm run studiocms add @studiocms/html터미널 창 pnpm run studiocms add @studiocms/html터미널 창 yarn run studiocms add @studiocms/html -
Your StudioCMS config should now include
@studiocms/html:studiocms.config.mjs import { defineStudioCMSConfig } from 'studiocms/config';import html from '@studiocms/html';export default defineStudioCMSConfig({plugins: [html(),],});
Options
Section titled “Options”type htmlOptions = { sanitize: { allowAttributes: Record<string, string[]>; allowComments: boolean; allowComponents: boolean; allowCustomElements: boolean; allowElements: string[]; blockElements: string[]; dropAttributes: Record<string, string[]>; dropElements: string[]; };};