Skip to content

Commit

Permalink
Init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
thejimbirch committed Dec 6, 2024
0 parents commit f941c37
Show file tree
Hide file tree
Showing 7 changed files with 567 additions and 0 deletions.
339 changes: 339 additions & 0 deletions LICENSE.md

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Saplings Full HTML Editor

Configures a rich CKEditor experience.

* Configures CKEditor with:
* Basic Bootstrap styles
* Linkit
* Advanced Editor Link
* Responsive HTML tables
* Media
19 changes: 19 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "kanopi/saplings-full-html-editor",
"description": "Configures a rich CKEditor experience.",
"type": "drupal-recipe",
"license": "GPL-2.0-or-later",
"authors": [
{
"name": "Jim Birch",
"homepage": "https://kanopi.com",
"role": "Maintainer"
}
],
"require": {
"drupal/core": ">=10.4",
"drupal/editor_advanced_link": "^2.0",
"drupal/linkit": "^7.0@alpha",
"drupal/responsive_tables_filter": "^1.18"
}
}
86 changes: 86 additions & 0 deletions config/editor.editor.full_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
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:
properties:
reversed: true
startIndex: true
multiBlock: true
ckeditor5_sourceEditing:
allowed_tags: { }
ckeditor5_style:
styles:
-
label: 'Primary Button'
element: '<a class="btn btn-primary">'
-
label: 'Primary Outline Button'
element: '<a class="btn btn-outline-primary">'
-
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:
- aria-label
- class
- id
- target
- title
linkit_extension:
linkit_enabled: true
linkit_profile: saplings_default
media_media:
allow_view_mode_override: false
image_upload:
status: false
75 changes: 75 additions & 0 deletions config/filter.format.full_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
langcode: en
status: true
dependencies:
module:
- linkit
- media
- responsive_tables_filter
name: 'Full HTML'
format: full_html
weight: 0
filters:
filter_align:
id: filter_align
provider: filter
status: true
weight: 0
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
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 aria-label title id target="_blank" data-entity-type data-entity-uuid data-entity-substitution> <blockquote class="blockquote"> <strong> <em> <u> <code> <s> <sub> <sup> <ul> <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-align>'
filter_html_help: true
filter_html_nofollow: false
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_responsive_tables_filter:
id: filter_responsive_tables_filter
provider: responsive_tables_filter
status: true
weight: 0
settings:
tablesaw_type: stack
tablesaw_persist: true
filter_url:
id: filter_url
provider: filter
status: true
weight: 0
settings:
filter_url_length: 72
linkit:
id: linkit
provider: linkit
status: true
weight: 0
settings:
title: true
media_embed:
id: media_embed
provider: media
status: true
weight: 100
settings:
default_view_mode: default
allowed_view_modes: { }
allowed_media_types: { }
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
substitution_type: canonical
limit: 100
include_unpublished: false
weight: 0
18 changes: 18 additions & 0 deletions recipe.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: 'Saplings - Full HTML Editor'
description: 'Configures a rich CKEditor experience.'
type: 'Site'
install:
# Core.
- ckeditor5
- editor
- node
- media
- media_library
# Contrib.
- editor_advanced_link
- linkit
- responsive_tables_filter
config:
strict: false
import:
linkit: '*'

0 comments on commit f941c37

Please sign in to comment.