Remove unused editor config items

This commit is contained in:
Daniel Lautzenheiser 2022-10-26 14:59:09 -04:00
parent 3486005244
commit 54ccfd7009
4 changed files with 0 additions and 40 deletions

View File

@ -621,11 +621,6 @@ export interface MarkdownField extends BaseField {
widget: 'markdown';
default?: string;
minimal?: boolean;
buttons?: MarkdownWidgetButton[];
editor_components?: string[];
sanitize_preview?: boolean;
media_library?: MediaLibrary;
media_folder?: string;
public_folder?: string;

View File

@ -1,6 +1,5 @@
import controlComponent from './MarkdownControl';
import previewComponent from './MarkdownPreview';
import schema from './schema';
import type { MarkdownField, WidgetParam } from '../../interface';
@ -9,9 +8,6 @@ const MarkdownWidget = (): WidgetParam<string, MarkdownField> => {
name: 'markdown',
controlComponent,
previewComponent,
options: {
schema,
},
};
};

View File

@ -1,27 +0,0 @@
export default {
properties: {
minimal: { type: 'boolean' },
buttons: {
type: 'array',
items: {
type: 'string',
enum: [
'bold',
'italic',
'code',
'link',
'heading-one',
'heading-two',
'heading-three',
'heading-four',
'heading-five',
'heading-six',
'quote',
'bulleted-list',
'numbered-list',
],
},
},
editor_components: { type: 'array', items: { type: 'string' } },
},
};

View File

@ -13,10 +13,6 @@ The markdown widget provides a full fledged text editor allowing users to format
* **Options:**
* `default`: accepts markdown content
* `minimal`: accepts a boolean value, `false` by default. Sets the widget height to minimum possible.
* `buttons`: an array of strings representing the formatting buttons to display (all shown by default). Buttons include: `bold`, `italic`, `code`, `link`, `heading-one`, `heading-two`, `heading-three`, `heading-four`, `heading-five`, `heading-six`, `quote`, `bulleted-list`, and `numbered-list`.
* `editor_components`: an array of strings representing the names of editor components to display (all shown by default). Static CMS includes `image` and `code-block` editor components by default, and custom components may be [created and registered](/docs/custom-widgets/#registereditorcomponent).
* `sanitize_preview`: accepts a boolean value, `false` by default. Sanitizes markdown preview to prevent XSS attacks - might alter the preview content.
* **Example:**
```yaml