diff --git a/assets/redactor/redactor-backend-extras.css b/assets/redactor/redactor-backend-extras.css new file mode 100644 index 0000000..4104604 --- /dev/null +++ b/assets/redactor/redactor-backend-extras.css @@ -0,0 +1,41 @@ +/* Default Styles and overrides */ +.redactor-source, .redactor-styles { + font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol; +} + +.redactor-styles img { + max-width: 75%; +} + +.redactor-styles blockquote { + background-color: #F5F5F5; + border-left: 5px solid #dbdbdb; + padding: 1.25em 1.5em; + font-style: italic; + color: #31363A; +} + +.redactor-styles blockquote p { + margin: 0; +} + +/* See: https://github.com/bolt/redactor/issues/3 */ +.redactor-air, .redactor-toolbar { + z-index: 40; +} + +.redactor-air, .redactor-toolbar a { + text-decoration: none !important; +} + +/* Clips */ +.callout-clip { + border: 1px solid #999; + background: #E8E8E8; + padding: 0.5rem; + margin: 1rem 0; +} + +.callout-clip p { + font-weight: bold; +} diff --git a/config/config.yaml b/config/config.yaml index cd93dae..8835941 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -4,36 +4,83 @@ # parameters to the `$R('#content', { … })` call. # See vendor/bolt/redactor/src/RedactorConfig.php::getDefaults for the default values. The values # below will be merged or appended with those values. + default: - # All options for buttons: html, format, bold, italic, deleted, lists, link, file, line, redo, - # undo, underline, ol, ul, indent, outdent, sup, sub - buttons: [ format, bold, italic, lists, link, html, image ] - - # See https://imperavi.com/redactor/plugins/ for available plugins - # Common items include video, widget, counter, clips, imagemanager, definedlinks - plugins: [ fullscreen, table, video, imagemanager, definedlinks] - - # Set this to false to hide the button to toggle showing the HTML source of the field. Setting it - # to plain `true` will override Redactor using the CodeMirror component, and it will show a plain - # source code editor instead. - # source: false - - # By default, pressing the Enter key will start a new `
` paragraph. Set `breakline` to false
- # to insert a `
` tag instead.
- breakline: false
-
- # Settings for images
- # Note: The current editor can only upload / insert images if they are granted
- # the 'upload' and 'list_files:files' permissions in `permissions.yaml`.
- image:
- thumbnail: 1000×1000×max
- imageResizable: false
- imagePosition: true
-
- # The tags to show in the 'Formatting' drop-down menu. Note: Block-level tags only!
- # Use the `inlinestyles` plugin for inline tags
- formatting: ['p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5']
-
-# If you have added custom plugins, add them to the mapping below.
-# plugins:
-# myplugin: ['/assets/myplugin/myplugin.min.js', '/assets/myplugin/myplugin.min.css']
+ # All options for buttons: html, format, bold, italic, deleted, lists, link, file, line, redo,
+ # undo, underline, ol, ul, indent, outdent, sup, sub
+ buttons: [ format, bold, italic, lists, link, html, image ]
+
+ # See https://imperavi.com/redactor/plugins/ for available plugins
+ # Common items include video, widget, counter, clips, imagemanager, definedlinks
+ plugins: [ fullscreen, table, video, imagemanager, definedlinks, clips]
+
+ # Set this to false to hide the button to toggle showing the HTML source of the field. Setting it
+ # to plain `true` will override Redactor using the CodeMirror component, and it will show a plain
+ # source code editor instead.
+ # source: false
+
+ # By default, pressing the Enter key will start a new `
` paragraph. Set `breakline` to false
+ # to insert a `
` tag instead.
+ breakline: false
+
+ # Settings for images
+ # Note: The current editor can only upload / insert images if they are granted
+ # the 'upload' and 'list_files:files' permissions in `permissions.yaml`.
+ image:
+ thumbnail: 1000×1000×max
+ imageResizable: false
+ imagePosition: true
+
+ # The tags to show in the 'Formatting' drop-down menu. Note: Block-level tags only!
+ # Use the `inlinestyles` plugin for inline tags
+ formatting: ['p', 'blockquote', 'pre', 'h2', 'h3', 'h4', 'h5']
+
+ clips:
+ - ['Lorem ipsum...', '
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.
'] + - ['Callout (with list)', "This is an example of the 'Callout clip'