disabled video embed in full html format (for email), added syntax hightlighting with ckeditor_codeminor

This commit is contained in:
Bachir Soussi Chiadmi 2021-09-16 11:17:29 +02:00
parent 277f3cb445
commit feb11b3971
7 changed files with 139 additions and 19 deletions

View File

@ -37,6 +37,24 @@
"type": "zip" "type": "zip"
} }
} }
},
{
"type": "package",
"package": {
"name": "w8tcha/ckeditor_codemirror",
"version": "v1.17.8",
"type": "drupal-library",
"extra": {
"installer-name": "ckeditor_codemirror"
},
"dist": {
"url": "https://github.com/w8tcha/CKEditor-CodeMirror-Plugin/releases/download/untagged-f790a6bee2e01b538b13/CKEditor-CodeMirror-Plugin.zip",
"type": "zip"
},
"require": {
"composer/installers": "~1.0"
}
}
} }
], ],
"require": { "require": {
@ -50,6 +68,7 @@
"drupal/audiofield": "^1.10", "drupal/audiofield": "^1.10",
"drupal/auto_entitylabel": "^2.x-dev", "drupal/auto_entitylabel": "^2.x-dev",
"drupal/better_messages": "^1.0@alpha", "drupal/better_messages": "^1.0@alpha",
"drupal/ckeditor_codemirror": "^2.3",
"drupal/ckeditor_font": "^1.2", "drupal/ckeditor_font": "^1.2",
"drupal/ckeditor_uploadimage": "^2.0", "drupal/ckeditor_uploadimage": "^2.0",
"drupal/colorbutton": "^1.3", "drupal/colorbutton": "^1.3",
@ -145,6 +164,7 @@
"smalot/pdfparser": "*", "smalot/pdfparser": "*",
"symfony/event-dispatcher": "4.3.4 as 3.4.99", "symfony/event-dispatcher": "4.3.4 as 3.4.99",
"vlucas/phpdotenv": "^2.4", "vlucas/phpdotenv": "^2.4",
"w8tcha/ckeditor_codemirror": "v1.17.8",
"wa72/htmlpagedom": "1.3.*", "wa72/htmlpagedom": "1.3.*",
"webflo/drupal-finder": "^1.0.0", "webflo/drupal-finder": "^1.0.0",
"webmozart/path-util": "^2.3", "webmozart/path-util": "^2.3",

68
composer.lock generated
View File

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b39b7f2234f15d815739981c1607eb3e", "content-hash": "957ca05105e223d75024ee67bb653c06",
"packages": [ "packages": [
{ {
"name": "alchemy/zippy", "name": "alchemy/zippy",
@ -3835,6 +3835,57 @@
"issues": "https://www.drupal.org/project/issues/checklistapi" "issues": "https://www.drupal.org/project/issues/checklistapi"
} }
}, },
{
"name": "drupal/ckeditor_codemirror",
"version": "2.3.0",
"source": {
"type": "git",
"url": "https://git.drupalcode.org/project/ckeditor_codemirror.git",
"reference": "8.x-2.3"
},
"dist": {
"type": "zip",
"url": "https://ftp.drupal.org/files/projects/ckeditor_codemirror-8.x-2.3.zip",
"reference": "8.x-2.3",
"shasum": "dfb00a0ec44953846d689d1e72f40e4201c8a355"
},
"require": {
"drupal/core": "^8.8 || ^9"
},
"type": "drupal-module",
"extra": {
"drupal": {
"version": "8.x-2.3",
"datestamp": "1586020798",
"security-coverage": {
"status": "covered",
"message": "Covered by Drupal's security advisory policy"
}
}
},
"notification-url": "https://packages.drupal.org/8/downloads",
"license": [
"GPL-2.0+"
],
"authors": [
{
"name": "Nickolay Leshchev (Plazik)",
"homepage": "https://www.drupal.org/u/plazik",
"role": "Maintainer"
},
{
"name": "Christopher C. Wells (wells)",
"homepage": "https://www.drupal.org/u/wells",
"role": "Co-maintainer"
}
],
"description": "Adds the CKEditor CodeMirror source syntax highlighter plugin.",
"homepage": "https://drupal.org/project/ckeditor_codemirror",
"support": {
"source": "http://cgit.drupalcode.org/ckeditor_codemirror",
"issues": "https://www.drupal.org/project/issues/ckeditor_codemirror?version=8.x"
}
},
{ {
"name": "drupal/ckeditor_font", "name": "drupal/ckeditor_font",
"version": "1.2.0", "version": "1.2.0",
@ -21337,6 +21388,21 @@
], ],
"time": "2021-01-20T14:39:13+00:00" "time": "2021-01-20T14:39:13+00:00"
}, },
{
"name": "w8tcha/ckeditor_codemirror",
"version": "v1.17.8",
"dist": {
"type": "zip",
"url": "https://github.com/w8tcha/CKEditor-CodeMirror-Plugin/releases/download/untagged-f790a6bee2e01b538b13/CKEditor-CodeMirror-Plugin.zip"
},
"require": {
"composer/installers": "~1.0"
},
"type": "drupal-library",
"extra": {
"installer-name": "ckeditor_codemirror"
}
},
{ {
"name": "wa72/htmlpagedom", "name": "wa72/htmlpagedom",
"version": "v1.3.2", "version": "v1.3.2",

View File

@ -22,6 +22,7 @@ module:
bulkdelete: 0 bulkdelete: 0
checklistapi: 0 checklistapi: 0
ckeditor: 0 ckeditor: 0
ckeditor_codemirror: 0
ckeditor_font: 0 ckeditor_font: 0
ckeditor_uploadimage: 0 ckeditor_uploadimage: 0
colorbutton: 0 colorbutton: 0

View File

@ -41,7 +41,6 @@ settings:
name: Média name: Média
items: items:
- DrupalImage - DrupalImage
- video_embed
- -
name: Outils name: Outils
items: items:
@ -54,10 +53,30 @@ settings:
- JustifyRight - JustifyRight
- JustifyBlock - JustifyBlock
plugins: plugins:
drupallink:
linkit_enabled: true
linkit_profile: default
stylescombo: stylescombo:
styles: '' styles: ''
language: language:
language_list: un language_list: un
codemirror:
enable: true
startupMode: wysiwyg
mode: htmlmixed
theme: monokai
options:
lineNumbers: true
lineWrapping: true
matchBrackets: true
autoCloseTags: true
autoCloseBrackets: true
enableSearchTools: true
enableCodeFolding: true
enableCodeFormatting: true
autoFormatOnStart: true
autoFormatOnModeChange: true
autoFormatOnUncomment: true
font: font:
font_names: '' font_names: ''
font_sizes: '' font_sizes: ''
@ -70,9 +89,6 @@ settings:
responsive: true responsive: true
width: '854' width: '854'
height: '480' height: '480'
drupallink:
linkit_enabled: true
linkit_profile: default
image_upload: image_upload:
status: true status: true
scheme: public scheme: public

View File

@ -53,10 +53,35 @@ settings:
- PasteText - PasteText
- PasteFromWord - PasteFromWord
plugins: plugins:
drupallink:
linkit_enabled: true
linkit_profile: default
stylescombo: stylescombo:
styles: h4.inter-titre|Inter-titre styles: h4.inter-titre|Inter-titre
language: language:
language_list: un language_list: un
codemirror:
enable: true
startupMode: wysiwyg
mode: htmlmixed
theme: monokai
options:
lineNumbers: true
lineWrapping: true
matchBrackets: true
autoCloseTags: true
autoCloseBrackets: true
enableSearchTools: true
enableCodeFolding: true
enableCodeFormatting: true
autoFormatOnStart: true
autoFormatOnModeChange: true
autoFormatOnUncomment: true
font:
font_names: ''
font_sizes: ''
colorbutton:
colors: ''
video_embed: video_embed:
defaults: defaults:
children: children:
@ -64,9 +89,6 @@ settings:
responsive: true responsive: true
width: '854' width: '854'
height: '480' height: '480'
drupallink:
linkit_enabled: true
linkit_profile: default
image_upload: image_upload:
status: true status: true
scheme: public scheme: public

View File

@ -4,8 +4,8 @@ status: true
dependencies: dependencies:
module: module:
- editor - editor
- linkit
- url_to_video_filter - url_to_video_filter
- video_embed_wysiwyg
name: 'full html' name: 'full html'
format: full_html format: full_html
weight: -9 weight: -9
@ -32,19 +32,13 @@ filters:
filter_url_to_video: filter_url_to_video:
id: filter_url_to_video id: filter_url_to_video
provider: url_to_video_filter provider: url_to_video_filter
status: true status: false
weight: 0 weight: 0
settings: settings:
youtube: '1' youtube: '1'
youtube_webp_preview: '0' youtube_webp_preview: '0'
vimeo: '1' vimeo: '1'
autoload: '0' autoload: '0'
video_embed_wysiwyg:
id: video_embed_wysiwyg
provider: video_embed_wysiwyg
status: true
weight: 0
settings: { }
editor_file_reference: editor_file_reference:
id: editor_file_reference id: editor_file_reference
provider: editor provider: editor
@ -57,7 +51,7 @@ filters:
status: false status: false
weight: -10 weight: -10
settings: settings:
allowed_html: '<a href hreflang data-entity-type data-entity-uuid data-entity-substitution> <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> <img src alt data-entity-type data-entity-uuid data-entity-substitution> <s> <p> <h1> <pre>' allowed_html: '<a href hreflang data-entity-type data-entity-uuid data-entity-substitution> <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> <img src alt data-entity-type data-entity-uuid data-entity-substitution> <s> <p> <h1> <pre> <u> <span>'
filter_html_help: true filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
linkit: linkit:

View File

@ -4,6 +4,7 @@ status: true
dependencies: dependencies:
module: module:
- editor - editor
- linkit
- url_to_video_filter - url_to_video_filter
_core: _core:
default_config_hash: w3wAkgsV6hn7P_cXCSnV-_1B_HOVJ7qwjv2DZID3B7g default_config_hash: w3wAkgsV6hn7P_cXCSnV-_1B_HOVJ7qwjv2DZID3B7g
@ -48,7 +49,7 @@ filters:
status: false status: false
weight: -43 weight: -43
settings: settings:
allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h5 id> <h6 id> <u> <a href hreflang !href accesskey id rel target title data-entity-type data-entity-uuid data-entity-substitution data-entity-substitution data-entity-type data-entity-uuid data-entity-substitution> <img src alt data-entity-type data-entity-uuid data-entity-substitution data-entity-substitution> <p> <h1> <pre> <h4 id class="inter-titre">' allowed_html: '<em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h5 id> <h6 id> <u> <a href hreflang !href accesskey id rel target title data-entity-type data-entity-uuid data-entity-substitution> <img src alt data-entity-type data-entity-uuid data-entity-substitution> <p> <h1> <pre> <h4 id class="inter-titre">'
filter_html_help: true filter_html_help: true
filter_html_nofollow: false filter_html_nofollow: false
filter_align: filter_align:
@ -77,8 +78,8 @@ filters:
settings: settings:
youtube: '1' youtube: '1'
youtube_webp_preview: '0' youtube_webp_preview: '0'
autoload: '0'
vimeo: '1' vimeo: '1'
autoload: '0'
linkit: linkit:
id: linkit id: linkit
provider: linkit provider: linkit