-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f941c37
Showing
7 changed files
with
567 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: '*' |