# GHSFullPageConfig

interface

The configuration of the Full page editing feature.

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-html-support/src/generalhtmlsupportconfig.ts#L153)

<a id="properties">

## Properties

<a id="member-allowRenderStylesFromHead">

### `allowRenderStylesFromHead?: boolean`

Whether the feature should allow the editor to render styles from the `<head>` section of editor data content.

When set to `true`, the editor will render styles from the `<head>` section of editor data content.

```typescript
ClassicEditor
	.create( {
		htmlSupport: {
			fullPage: {
				allowRenderStylesFromHead: true
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-html-support/src/generalhtmlsupportconfig.ts#L175)

Defaults to `false`

<a id="member-sanitizeCss">

### `sanitizeCss?: ( css: string ) => GHSCssSanitizeOutput`

Callback used to sanitize the CSS provided by the user in editor content when option `htmlSupport.fullPage.allowRenderStylesFromHead` is set to `true`.

We strongly recommend overwriting the default function to avoid XSS vulnerabilities.

The function receives the CSS (as a string), and should return an object that matches the [`GHSCssSanitizeOutput`](module_html-support_generalhtmlsupportconfig-GHSCssSanitizeOutput.md) interface.

```typescript
ClassicEditor
	.create( {
		htmlSupport: {
			fullPage: {
				allowRenderStylesFromHead: true,

				sanitizeCss( CssString ) {
					const sanitizedCss = sanitize( CssString );

					return {
						css: sanitizedCss,
						// true or false depending on whether the sanitizer stripped anything.
						hasChanged: ...
					};
				}
			}
		}
	} )
	.then( ... )
	.catch( ... );
```

[See source](https://github.com/ckeditor/ckeditor5/blob/master/packages/ckeditor5-html-support/src/generalhtmlsupportconfig.ts#L210)

---

Full index of the CKEditor 5 API reference: [llms.txt](llms.txt)
