@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[]; };};