Skip to content

Commit 970727c

Browse files
Switch to 2 space yaml indent
1 parent 82d9eaa commit 970727c

3 files changed

Lines changed: 114 additions & 115 deletions

File tree

config/config.yaml

Lines changed: 86 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -6,90 +6,90 @@
66
# below will be merged or appended with those values.
77

88
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']
9595

config/routes.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
redactor_extension_controllers:
2-
resource: '../../vendor/bolt/redactor/src/Controller/'
3-
prefix: '%bolt.backend_url%/async'
4-
type: attribute
2+
resource: '../../vendor/bolt/redactor/src/Controller/'
3+
prefix: '%bolt.backend_url%/async'
4+
type: attribute

config/services.yaml

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
services:
2-
3-
_defaults:
4-
autowire: true
5-
autoconfigure: true
6-
7-
Bolt\Redactor\Controller\Images:
8-
tags: ['controller.service_arguments']
9-
10-
Bolt\Redactor\Controller\Upload:
11-
tags: ['controller.service_arguments']
12-
13-
Bolt\Redactor\TwigExtension:
14-
arguments:
15-
$projectDir: '%kernel.project_dir%'
16-
$publicFolder: '%bolt.public_folder%'
2+
_defaults:
3+
autowire: true
4+
autoconfigure: true
5+
6+
Bolt\Redactor\Controller\Images:
7+
tags: [ 'controller.service_arguments' ]
8+
9+
Bolt\Redactor\Controller\Upload:
10+
tags: [ 'controller.service_arguments' ]
11+
12+
Bolt\Redactor\TwigExtension:
13+
arguments:
14+
$projectDir: '%kernel.project_dir%'
15+
$publicFolder: '%bolt.public_folder%'
1716

1817
### Map entities
1918
doctrine:
20-
orm:
21-
auto_generate_proxy_classes: '%kernel.debug%'
22-
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
23-
auto_mapping: true
24-
mappings:
25-
Redactor:
26-
is_bundle: false
27-
type: attribute
28-
dir: '%kernel.project_dir%/vendor/bolt/redactor/src/Entity'
29-
prefix: 'Bolt\Redactor'
30-
alias: Redactor
19+
orm:
20+
auto_generate_proxy_classes: '%kernel.debug%'
21+
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
22+
auto_mapping: true
23+
mappings:
24+
Redactor:
25+
is_bundle: false
26+
type: attribute
27+
dir: '%kernel.project_dir%/vendor/bolt/redactor/src/Entity'
28+
prefix: 'Bolt\Redactor'
29+
alias: Redactor

0 commit comments

Comments
 (0)