|
6 | 6 | # below will be merged or appended with those values. |
7 | 7 |
|
8 | 8 | default: |
9 | | - # All options for buttons: html, format, bold, italic, deleted, lists, link, file, line, redo, |
10 | | - # undo, underline, ol, ul, indent, outdent, sup, sub |
11 | | - buttons: [ format, bold, italic, lists, link, html, image, file ] |
12 | | - |
13 | | - # See https://imperavi.com/redactor/plugins/ for available plugins |
14 | | - # Common items include video, widget, counter, clips, imagemanager, definedlinks, inlinestyle |
15 | | - plugins: [ inlinestyle, fullscreen, table, video, imagemanager, definedlinks, filemanager ] |
16 | | - |
17 | | - # Set this to false to hide the button to toggle showing the HTML source of the field. Setting it |
18 | | - # to plain `true` will override Redactor using the CodeMirror component, and it will show a plain |
19 | | - # source code editor instead. |
20 | | - # source: false |
21 | | - |
22 | | - # By default, pressing the Enter key will start a new `<p>` paragraph. Set `breakline` to false |
23 | | - # to insert a `<br>` tag instead. |
24 | | - breakline: false |
25 | | - |
26 | | - # Settings for images |
27 | | - # Note: The current editor can only upload / insert images if they are granted |
28 | | - # the 'upload' and 'list_files:files' permissions in `permissions.yaml`. |
29 | | - image: |
30 | | - thumbnail: 1000×1000×max |
31 | | - imageResizable: false |
32 | | - imagePosition: true |
33 | | - |
34 | | - # The tags to show in the 'Formatting' drop-down menu. Note: Block-level tags only! |
35 | | - # Use the `inlinestyle` plugin for inline tags |
36 | | - formatting: ['p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5' ] |
37 | | - |
38 | | - # Additional options for the `Formatting` drop-down menu. See for examples: |
39 | | - # https://imperavi.com/redactor/docs/settings/formatting/#s-formattingadd |
40 | | - formattingAdd: |
41 | | - small: |
42 | | - title: 'Small' |
43 | | - api: 'module.block.format' |
44 | | - args: |
45 | | - tag: 'small' |
46 | | - |
47 | | - clips: |
48 | | - - ['Lorem ipsum...', '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Respondent extrema primis, media utrisque, omnia omnibus. Sedulo, inquam, faciam. Expressa vero in iis aetatibus, quae iam confirmatae sunt. Duo Reges: constructio interrete. Si longus, levis; Bonum integritas corporis: misera debilitas.</p>'] |
49 | | - - ['Callout (with list)', "<div class='callout-clip'><p>This is an example of the 'Callout clip'</p><ul><li>Item one</li><li>Item two</li><li>Item three</li></ul></div>"] |
50 | | - |
51 | | - # Extra CSS and/or JS files to include in the backend. They can be sourced from the (provided) `/assets/` folder, or from the current theme |
52 | | - includes: |
53 | | - - 'assets/redactor/redactor-backend-extras.css' |
54 | | - # - '%theme%/redactor-backend-extras.css' |
55 | | - |
56 | | - # This setting allows to set minimum height for Redactor |
57 | | - minHeight: 200px |
58 | | - |
59 | | - # This setting allows to set maximum height for Redactor |
60 | | - maxHeight: 700px |
61 | | - |
62 | | - # This settings introduces visual indicators for HTML tags h1-h6 and div, helping users understand the structure of the document. |
63 | | - structure: false |
64 | | - |
65 | | - # This setting removes all new lines between tags in the Redactor source code |
66 | | - removeNewLines: false |
67 | | - |
68 | | - # This setting removes the script tag in the HTML source. |
69 | | - removeScript: true |
70 | | - |
71 | | - # To prevent Redactor from removing HTML comments, set this to false. |
72 | | - removeComments: true |
73 | | - |
74 | | - # This setting will remove all tags and formatting from pasted text, excluding links and images. |
75 | | - pastePlainText: false |
76 | | - |
77 | | - # Whenever you need to exclude images from the content that users can paste, this setting is here for you. |
78 | | - pasteImages: false |
79 | | - |
80 | | - # Set this to false, and all links will be pasted as plain text. |
81 | | - pasteLinks: true |
82 | | - |
83 | | - # This setting allows to turn off a browser spell checking for Redactor. |
84 | | - spellcheck: true |
85 | | - |
86 | | - # Whenever you need to control which block tags your users can paste, use this setting |
87 | | - # pasteBlockTags: ['blockquote', 'p'] |
88 | | - |
89 | | - # Whenever you need to control which inline tags your users can paste, use this setting. |
90 | | - # pasteInlineTags: ['a', 'br', 'strong', 'ins', 'code', 'del'] |
91 | | - |
92 | | - # If you have added custom plugins, place them in `/assets/redactor/plugins/`, add them to the mapping below. |
93 | | - # plugins: |
94 | | - # myplugin: ['myplugin/myplugin.min.js', '/myplugin/myplugin.min.css'] |
| 9 | + # All options for buttons: html, format, bold, italic, deleted, lists, link, file, line, redo, |
| 10 | + # undo, underline, ol, ul, indent, outdent, sup, sub |
| 11 | + buttons: [ format, bold, italic, lists, link, html, image, file ] |
| 12 | + |
| 13 | + # See https://imperavi.com/redactor/plugins/ for available plugins |
| 14 | + # Common items include video, widget, counter, clips, imagemanager, definedlinks, inlinestyle |
| 15 | + plugins: [ inlinestyle, fullscreen, table, video, imagemanager, definedlinks, filemanager ] |
| 16 | + |
| 17 | + # Set this to false to hide the button to toggle showing the HTML source of the field. Setting it |
| 18 | + # to plain `true` will override Redactor using the CodeMirror component, and it will show a plain |
| 19 | + # source code editor instead. |
| 20 | + # source: false |
| 21 | + |
| 22 | + # By default, pressing the Enter key will start a new `<p>` paragraph. Set `breakline` to false |
| 23 | + # to insert a `<br>` tag instead. |
| 24 | + breakline: false |
| 25 | + |
| 26 | + # Settings for images |
| 27 | + # Note: The current editor can only upload / insert images if they are granted |
| 28 | + # the 'upload' and 'list_files:files' permissions in `permissions.yaml`. |
| 29 | + image: |
| 30 | + thumbnail: 1000×1000×max |
| 31 | + imageResizable: false |
| 32 | + imagePosition: true |
| 33 | + |
| 34 | + # The tags to show in the 'Formatting' drop-down menu. Note: Block-level tags only! |
| 35 | + # Use the `inlinestyle` plugin for inline tags |
| 36 | + formatting: [ 'p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5' ] |
| 37 | + |
| 38 | + # Additional options for the `Formatting` drop-down menu. See for examples: |
| 39 | + # https://imperavi.com/redactor/docs/settings/formatting/#s-formattingadd |
| 40 | + formattingAdd: |
| 41 | + small: |
| 42 | + title: 'Small' |
| 43 | + api: 'module.block.format' |
| 44 | + args: |
| 45 | + tag: 'small' |
| 46 | + |
| 47 | + clips: |
| 48 | + - [ 'Lorem ipsum...', '<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Respondent extrema primis, media utrisque, omnia omnibus. Sedulo, inquam, faciam. Expressa vero in iis aetatibus, quae iam confirmatae sunt. Duo Reges: constructio interrete. Si longus, levis; Bonum integritas corporis: misera debilitas.</p>' ] |
| 49 | + - [ 'Callout (with list)', "<div class='callout-clip'><p>This is an example of the 'Callout clip'</p><ul><li>Item one</li><li>Item two</li><li>Item three</li></ul></div>" ] |
| 50 | + |
| 51 | + # Extra CSS and/or JS files to include in the backend. They can be sourced from the (provided) `/assets/` folder, or from the current theme |
| 52 | + includes: |
| 53 | + - 'assets/redactor/redactor-backend-extras.css' |
| 54 | + # - '%theme%/redactor-backend-extras.css' |
| 55 | + |
| 56 | + # This setting allows to set minimum height for Redactor |
| 57 | + minHeight: 200px |
| 58 | + |
| 59 | + # This setting allows to set maximum height for Redactor |
| 60 | + maxHeight: 700px |
| 61 | + |
| 62 | + # This settings introduces visual indicators for HTML tags h1-h6 and div, helping users understand the structure of the document. |
| 63 | + structure: false |
| 64 | + |
| 65 | + # This setting removes all new lines between tags in the Redactor source code |
| 66 | + removeNewLines: false |
| 67 | + |
| 68 | + # This setting removes the script tag in the HTML source. |
| 69 | + removeScript: true |
| 70 | + |
| 71 | + # To prevent Redactor from removing HTML comments, set this to false. |
| 72 | + removeComments: true |
| 73 | + |
| 74 | + # This setting will remove all tags and formatting from pasted text, excluding links and images. |
| 75 | + pastePlainText: false |
| 76 | + |
| 77 | + # Whenever you need to exclude images from the content that users can paste, this setting is here for you. |
| 78 | + pasteImages: false |
| 79 | + |
| 80 | + # Set this to false, and all links will be pasted as plain text. |
| 81 | + pasteLinks: true |
| 82 | + |
| 83 | + # This setting allows to turn off a browser spell checking for Redactor. |
| 84 | + spellcheck: true |
| 85 | + |
| 86 | + # Whenever you need to control which block tags your users can paste, use this setting |
| 87 | + # pasteBlockTags: ['blockquote', 'p'] |
| 88 | + |
| 89 | + # Whenever you need to control which inline tags your users can paste, use this setting. |
| 90 | + # pasteInlineTags: ['a', 'br', 'strong', 'ins', 'code', 'del'] |
| 91 | + |
| 92 | + # If you have added custom plugins, place them in `/assets/redactor/plugins/`, add them to the mapping below. |
| 93 | + # plugins: |
| 94 | + # myplugin: ['myplugin/myplugin.min.js', '/myplugin/myplugin.min.css'] |
95 | 95 |
|
0 commit comments