Remove unused editor config items
This commit is contained in:
parent
3486005244
commit
54ccfd7009
@ -621,11 +621,6 @@ export interface MarkdownField extends BaseField {
|
|||||||
widget: 'markdown';
|
widget: 'markdown';
|
||||||
default?: string;
|
default?: string;
|
||||||
|
|
||||||
minimal?: boolean;
|
|
||||||
buttons?: MarkdownWidgetButton[];
|
|
||||||
editor_components?: string[];
|
|
||||||
|
|
||||||
sanitize_preview?: boolean;
|
|
||||||
media_library?: MediaLibrary;
|
media_library?: MediaLibrary;
|
||||||
media_folder?: string;
|
media_folder?: string;
|
||||||
public_folder?: string;
|
public_folder?: string;
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
import controlComponent from './MarkdownControl';
|
import controlComponent from './MarkdownControl';
|
||||||
import previewComponent from './MarkdownPreview';
|
import previewComponent from './MarkdownPreview';
|
||||||
import schema from './schema';
|
|
||||||
|
|
||||||
import type { MarkdownField, WidgetParam } from '../../interface';
|
import type { MarkdownField, WidgetParam } from '../../interface';
|
||||||
|
|
||||||
@ -9,9 +8,6 @@ const MarkdownWidget = (): WidgetParam<string, MarkdownField> => {
|
|||||||
name: 'markdown',
|
name: 'markdown',
|
||||||
controlComponent,
|
controlComponent,
|
||||||
previewComponent,
|
previewComponent,
|
||||||
options: {
|
|
||||||
schema,
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -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' } },
|
|
||||||
},
|
|
||||||
};
|
|
@ -13,10 +13,6 @@ The markdown widget provides a full fledged text editor allowing users to format
|
|||||||
* **Options:**
|
* **Options:**
|
||||||
|
|
||||||
* `default`: accepts markdown content
|
* `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:**
|
* **Example:**
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
Loading…
x
Reference in New Issue
Block a user