Skip to content

Commit

Permalink
Init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thejimbirch committed Dec 28, 2023
0 parents commit 65b7118
Show file tree
Hide file tree
Showing 7 changed files with 246 additions and 0 deletions.
30 changes: 30 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "kanopi/saplings-editorial",
"description": "Configures a rich editing experience for modern Drupal.",
"type": "drupal-recipe",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Jim Birch",
"homepage": "https://kanopi.com",
"role": "Maintainer"
}
],
"require": {
"drupal/access_unpublished": "^1.5",
"drupal/allowed_formats": "^3.0",
"drupal/editor_advanced_link": "^2.0",
"drupal/field_group": "^3.1",
"drupal/linkit": "^6.1",
"drupal/nomarkup": "^1.0",
"drupal/quick_node_clone": "^1.16",
"drupal/responsive_tables_filter": "^1.18",
"drupal/view_unpublished": "^1.1"
},
"suggest": {
"kanopi/gin-admin-experience": "A simple Drupal Recipe for installing and configuring the Gin admin theme and supporting base modules.",
"kanopi/saplings-base": "Simple base configuration for modern Drupal.",
"kanopi/saplings-media": "Configures media defaults for modern Drupal.",
"kanopi/saplings-launch": "Configures best practices for launching modern Drupal."
}
}
81 changes: 81 additions & 0 deletions config/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,81 @@
langcode: en
status: true
dependencies:
config:
- filter.format.full_html
module:
- ckeditor5
format: full_html
editor: ckeditor5
settings:
toolbar:
items:
- undo
- redo
- heading
- style
- bold
- underline
- italic
- strikethrough
- code
- subscript
- superscript
- blockQuote
- link
- indent
- outdent
- bulletedList
- numberedList
- alignment
- removeFormat
- insertTable
- drupalMedia
- sourceEditing
plugins:
ckeditor5_alignment:
enabled_alignments:
- center
- justify
- left
- right
ckeditor5_heading:
enabled_headings:
- heading2
- heading3
- heading4
- heading5
- heading6
ckeditor5_list:
reversed: true
startIndex: true
ckeditor5_sourceEditing:
allowed_tags: { }
ckeditor5_style:
styles:
-
label: 'Primary Button'
element: '<a class="btn btn-primary">'
-
label: 'Secondary Button'
element: '<a class="btn btn-secondary">'
-
label: Blockquote
element: '<blockquote class="blockquote">'
-
label: 'Blockquote Author'
element: '<p class="author">'
-
label: Aside
element: '<p class="aside">'
editor_advanced_link_link:
enabled_attributes:
- class
- target
- title
linkit_extension:
linkit_enabled: true
linkit_profile: bp_default
media_media:
allow_view_mode_override: true
image_upload: { }
74 changes: 74 additions & 0 deletions config/filter.format.full_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
langcode: en
status: true
dependencies:
module:
- editor
name: 'Full HTML'
format: full_html
weight: 0
filters:
filter_url:
id: filter_url
provider: filter
status: true
weight: 0
settings:
filter_url_length: 72
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<br> <p class="author aside text-align-left text-align-center text-align-right text-align-justify"> <h2 class="text-align-left text-align-center text-align-right text-align-justify"> <h3 class="text-align-left text-align-center text-align-right text-align-justify"> <h4 class="text-align-left text-align-center text-align-right text-align-justify"> <h5 class="text-align-left text-align-center text-align-right text-align-justify"> <h6 class="text-align-left text-align-center text-align-right text-align-justify"> <a class href title target="_blank" data-entity-type data-entity-uuid data-entity-substitution> <ul class="list-nav two-col"> <blockquote class="blockquote"> <strong> <em> <u> <code> <s> <sub> <sup> <ol reversed start> <li> <table> <tr> <td rowspan colspan> <th rowspan colspan> <thead> <tbody> <tfoot> <caption> <drupal-media data-entity-type data-entity-uuid alt data-view-mode data-align>'
filter_html_help: true
filter_html_nofollow: false
linkit:
id: linkit
provider: linkit
status: true
weight: 0
settings:
title: true
filter_html_image_secure:
id: filter_html_image_secure
provider: filter
status: true
weight: 9
settings: { }
filter_image_lazy_load:
id: filter_image_lazy_load
provider: filter
status: true
weight: 15
settings: { }
filter_align:
id: filter_align
provider: filter
status: true
weight: 0
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
media_embed:
id: media_embed
provider: media
status: true
weight: 100
settings:
default_view_mode: default
allowed_view_modes:
default: default
allowed_media_types: { }
filter_responsive_tables_filter:
id: filter_responsive_tables_filter
provider: responsive_tables_filter
status: true
weight: 0
settings:
tablesaw_type: stack
tablesaw_persist: '1'
20 changes: 20 additions & 0 deletions config/linkit.linkit_profile.saplings_default.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
langcode: en
status: true
dependencies:
module:
- node
label: Saplings Linkit default
id: saplings_default
description: 'A default Linkit profile'
matchers:
9e9c3670-8480-4b0f-aaf6-bdecf4a36ed7:
id: 'entity:node'
uuid: 9e9c3670-8480-4b0f-aaf6-bdecf4a36ed7
settings:
metadata: '[node:content-type:name] #[node:nid] | [node:created:medium] by [node:author]'
bundles: { }
group_by_bundle: false
include_unpublished: false
substitution_type: canonical
limit: 100
weight: 0
8 changes: 8 additions & 0 deletions config/user.role.administrator.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
langcode: en
status: true
dependencies: { }
id: administrator
label: Administrator
weight: 10
is_admin: true
permissions: { }
8 changes: 8 additions & 0 deletions config/user.role.content_editor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
langcode: en
status: true
dependencies: { }
id: content_editor
label: 'Content Editor'
weight: 5
is_admin: null
permissions: { }
25 changes: 25 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: 'Saplings - Editorial'
description: 'Configures a rich editing experience for modern Drupal.'
type: 'Site'
install:
# Core.
- ckeditor5
- editor
- media
- node
# Contrib.
- access_unpublished
- allowed_formats
- editor_advanced_link
- field_group
- linkit
- nomarkup
- quick_node_clone
- responsive_tables_filter
- view_unpublished
config:
import:
access_unpublished: '*'
linkit: '*'
quick_node_clone: '*'
responsive_tables_filter: '*'

0 comments on commit 65b7118

Please sign in to comment.