|
4 | 4 | # parameters to the `$R('#content', { … })` call.
|
5 | 5 | # See vendor/bolt/redactor/src/RedactorConfig.php::getDefaults for the default values. The values
|
6 | 6 | # below will be merged or appended with those values.
|
| 7 | + |
7 | 8 | default:
|
8 |
| - # All options for buttons: html, format, bold, italic, deleted, lists, link, file, line, redo, |
9 |
| - # undo, underline, ol, ul, indent, outdent, sup, sub |
10 |
| - buttons: [ format, bold, italic, lists, link, html, image ] |
11 |
| - |
12 |
| - # See https://imperavi.com/redactor/plugins/ for available plugins |
13 |
| - # Common items include video, widget, counter, clips, imagemanager, definedlinks |
14 |
| - plugins: [ fullscreen, table, video, imagemanager, definedlinks] |
15 |
| - |
16 |
| - # Set this to false to hide the button to toggle showing the HTML source of the field. Setting it |
17 |
| - # to plain `true` will override Redactor using the CodeMirror component, and it will show a plain |
18 |
| - # source code editor instead. |
19 |
| - # source: false |
20 |
| - |
21 |
| - # By default, pressing the Enter key will start a new `<p>` paragraph. Set `breakline` to false |
22 |
| - # to insert a `<br>` tag instead. |
23 |
| - breakline: false |
24 |
| - |
25 |
| - # Settings for images |
26 |
| - # Note: The current editor can only upload / insert images if they are granted |
27 |
| - # the 'upload' and 'list_files:files' permissions in `permissions.yaml`. |
28 |
| - image: |
29 |
| - thumbnail: 1000×1000×max |
30 |
| - imageResizable: false |
31 |
| - imagePosition: true |
32 |
| - |
33 |
| - # The tags to show in the 'Formatting' drop-down menu. Note: Block-level tags only! |
34 |
| - # Use the `inlinestyles` plugin for inline tags |
35 |
| - formatting: ['p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5'] |
36 |
| - |
37 |
| -# If you have added custom plugins, add them to the mapping below. |
38 |
| -# plugins: |
39 |
| -# myplugin: ['/assets/myplugin/myplugin.min.js', '/assets/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 ] |
| 12 | + |
| 13 | + # See https://imperavi.com/redactor/plugins/ for available plugins |
| 14 | + # Common items include video, widget, counter, clips, imagemanager, definedlinks |
| 15 | + plugins: [ fullscreen, table, video, imagemanager, definedlinks, clips] |
| 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 `inlinestyles` plugin for inline tags |
| 36 | + formatting: ['p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5'] |
| 37 | + |
| 38 | + clips: |
| 39 | + - ['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>'] |
| 40 | + - ['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>"] |
| 41 | + |
| 42 | + # 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 |
| 43 | + includes: |
| 44 | + - 'assets/redactor/redactor-backend-extras.css' |
| 45 | + # - '%theme%/redactor-backend-extras.css' |
| 46 | + |
| 47 | + # This setting allows to set minimum height for Redactor |
| 48 | + minHeight: 200px |
| 49 | + |
| 50 | + # This setting allows to set maximum height for Redactor |
| 51 | + maxHeight: 700px |
| 52 | + |
| 53 | + # This settings introduces visual indicators for HTML tags h1-h6 and div, helping users understand the structure of the document. |
| 54 | + structure: false |
| 55 | + |
| 56 | + # This setting removes all new lines between tags in the Redactor source code |
| 57 | + removeNewLines: true |
| 58 | + |
| 59 | + # This setting removes the script tag in the HTML source. |
| 60 | + removeScript: true |
| 61 | + |
| 62 | + # To prevent Redactor from removing HTML comments, set this to false. |
| 63 | + removeComments: false |
| 64 | + |
| 65 | + # This setting will remove all tags and formatting from pasted text, excluding links and images. |
| 66 | + pastePlainText: false |
| 67 | + |
| 68 | + # Whenever you need to exclude images from the content that users can paste, this setting is here for you. |
| 69 | + pasteImages: false |
| 70 | + |
| 71 | + # Set this to false, and all links will be pasted as plain text. |
| 72 | + pasteLinks: false |
| 73 | + |
| 74 | + # This setting allows to turn off a browser spell checking for Redactor. |
| 75 | + spellcheck: true |
| 76 | + |
| 77 | + # Whenever you need to control which block tags your users can paste, use this setting |
| 78 | + # pasteBlockTags: ['blockquote', 'p'] |
| 79 | + |
| 80 | + # Whenever you need to control which inline tags your users can paste, use this setting. |
| 81 | + # pasteInlineTags: ['a', 'br', 'strong', 'ins', 'code', 'del'] |
| 82 | + |
| 83 | + # If you have added custom plugins, place them in `/assets/redactor/plugins/`, add them to the mapping below. |
| 84 | + # plugins: |
| 85 | + # myplugin: ['myplugin/myplugin.min.js', '/myplugin/myplugin.min.css'] |
| 86 | + |
0 commit comments