Skip to content
This repository has been archived by the owner on Oct 18, 2024. It is now read-only.

#60 Add CKEditor profiles #62

Open
wants to merge 1 commit into
base: 2.x.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
## Draft 2.x.x
- [Issue 60](https://github.com/lemberg/draft/issues/60) - Add CKEDitor profiles
- [Issue 46](https://github.com/lemberg/draft/issues/46) - Add paragraph Simple - CTA
- [Issue 55](https://github.com/lemberg/draft/issues/55) - Add paragraphs Link - Default and Link - File
- [Issue 45](https://github.com/lemberg/draft/issues/45) - Add paragraph Hero - Basic
Expand Down
50 changes: 50 additions & 0 deletions config/install/editor.editor.basic_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
langcode: en
status: true
dependencies:
config:
- filter.format.basic_html
module:
- ckeditor
format: basic_html
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Links
items:
- DrupalLink
- DrupalUnlink
-
name: Lists
items:
- BulletedList
- NumberedList
-
name: Format
items:
- Format
- Styles
-
name: Tools
items:
- Source
plugins:
language:
language_list: un
stylescombo:
styles: ''
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
44 changes: 44 additions & 0 deletions config/install/editor.editor.restricted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
langcode: en
status: true
dependencies:
config:
- filter.format.restricted
module:
- ckeditor
format: restricted
editor: ckeditor
settings:
toolbar:
rows:
-
-
name: Formatting
items:
- Bold
- Italic
-
name: Links
items:
- DrupalLink
- DrupalUnlink
-
name: Tools
items:
- Source
-
name: Format
items:
- Format
plugins:
language:
language_list: un
stylescombo:
styles: ''
image_upload:
status: false
scheme: public
directory: inline-images
max_size: ''
max_dimensions:
width: null
height: null
47 changes: 47 additions & 0 deletions config/install/filter.format.basic_html.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
langcode: en
status: true
dependencies: { }
name: 'Basic HTML'
format: basic_html
weight: 0
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <p>'
filter_html_help: true
filter_html_nofollow: false
filter_url:
id: filter_url
provider: filter
status: true
weight: 0
settings:
filter_url_length: 72
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
filter_align:
id: filter_align
provider: filter
status: true
weight: 0
settings: { }
filter_caption:
id: filter_caption
provider: filter
status: true
weight: 0
settings: { }
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
26 changes: 26 additions & 0 deletions config/install/filter.format.plain_text.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
langcode: en
status: true
dependencies: { }
name: 'Plain text'
format: plain_text
weight: 10
filters:
filter_html_escape:
id: filter_html_escape
provider: filter
status: true
weight: -10
settings: { }
filter_url:
id: filter_url
provider: filter
status: true
weight: 0
settings:
filter_url_length: 72
filter_autop:
id: filter_autop
provider: filter
status: true
weight: 0
settings: { }
29 changes: 29 additions & 0 deletions config/install/filter.format.restricted.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
langcode: en
status: true
dependencies: { }
name: Restricted
format: restricted
weight: 0
filters:
filter_html:
id: filter_html
provider: filter
status: true
weight: -10
settings:
allowed_html: '<em> <strong> <span> <a href hreflang title> <p> <h2> <h3> <h4> <h5> <h6>'
filter_html_help: true
filter_html_nofollow: false
filter_url:
id: filter_url
provider: filter
status: true
weight: 0
settings:
filter_url_length: 72
filter_htmlcorrector:
id: filter_htmlcorrector
provider: filter
status: true
weight: 10
settings: { }
12 changes: 12 additions & 0 deletions config/install/user.role.authenticated.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
langcode: en
status: true
dependencies: { }
id: authenticated
label: 'Authenticated user'
weight: 1
is_admin: false
permissions:
- 'access content'
- 'use text format basic_html'
- 'use text format restricted'
- 'view media'