From 2ab0a7f58c9ae7d16971ddb1b2692a278dbdfed7 Mon Sep 17 00:00:00 2001 From: Kasper Birch Date: Thu, 1 Aug 2024 15:19:06 +0200 Subject: [PATCH 1/5] Add `editor_advanced_link` module to open WYSIWYG links in a new tab This module allows users to choose if a link in the WYSIWYG editor should open in a new window. --- composer.json | 1 + composer.lock | 51 ++++++++++++++++++- config/sync/core.extension.yml | 1 + config/sync/editor.editor.basic.yml | 3 ++ config/sync/editor.editor.limited.yml | 3 ++ config/sync/filter.format.basic.yml | 2 +- config/sync/filter.format.limited.yml | 2 +- .../custom/dpl_update/dpl_update.install | 12 +++++ 8 files changed, 72 insertions(+), 3 deletions(-) diff --git a/composer.json b/composer.json index d2ab36d3c9..29144c4987 100644 --- a/composer.json +++ b/composer.json @@ -115,6 +115,7 @@ "drupal/default_content": "^2.0@alpha", "drupal/devel": "^5.1", "drupal/dynamic_entity_reference": "^3.1", + "drupal/editor_advanced_link": "^2.2", "drupal/entity_clone_template": "^2.0", "drupal/enum_field": "^1.0", "drupal/facets": "^2.0", diff --git a/composer.lock b/composer.lock index 06a6215bab..94a27b6017 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6bbe751629baf2ab9116b36d40415290", + "content-hash": "dbd73b01d002c602e80c60661c723e9d", "packages": [ { "name": "amazeeio/drupal_integrations", @@ -3761,6 +3761,54 @@ "irc": "irc://irc.freenode.org/drupal-contribute" } }, + { + "name": "drupal/editor_advanced_link", + "version": "2.2.4", + "source": { + "type": "git", + "url": "https://git.drupalcode.org/project/editor_advanced_link.git", + "reference": "2.2.4" + }, + "dist": { + "type": "zip", + "url": "https://ftp.drupal.org/files/projects/editor_advanced_link-2.2.4.zip", + "reference": "2.2.4", + "shasum": "cd0db397827f2e21ec8a68211e8a153463a6c89b" + }, + "require": { + "drupal/core": "^9.2 || ^10" + }, + "require-dev": { + "drupal/ckeditor": "*", + "phpro/grumphp": "^2.0" + }, + "type": "drupal-module", + "extra": { + "drupal": { + "version": "2.2.4", + "datestamp": "1688040059", + "security-coverage": { + "status": "covered", + "message": "Covered by Drupal's security advisory policy" + } + } + }, + "notification-url": "https://packages.drupal.org/8/downloads", + "license": [ + "GPL-2.0-or-later" + ], + "authors": [ + { + "name": "DuaelFr", + "homepage": "https://www.drupal.org/user/931394" + } + ], + "description": "Editor Advanced link", + "homepage": "https://www.drupal.org/project/editor_advanced_link", + "support": { + "source": "https://git.drupalcode.org/project/editor_advanced_link" + } + }, { "name": "drupal/entity_clone", "version": "2.0.0-beta4", @@ -18864,6 +18912,7 @@ "minimum-stability": "dev", "stability-flags": { "drupal/default_content": 15, + "drupal/gin": 5, "drupal/gin_toolbar": 5, "drupal/multivalue_form_element": 10, "drupal/openapi_rest": 5, diff --git a/config/sync/core.extension.yml b/config/sync/core.extension.yml index e5eefee6ae..8022f0fed2 100644 --- a/config/sync/core.extension.yml +++ b/config/sync/core.extension.yml @@ -79,6 +79,7 @@ module: dynamic_entity_reference: 0 dynamic_page_cache: 0 editor: 0 + editor_advanced_link: 0 entity_clone: 0 entity_clone_template: 0 entity_reference_revisions: 0 diff --git a/config/sync/editor.editor.basic.yml b/config/sync/editor.editor.basic.yml index c7981b8eb3..97c789bbaa 100644 --- a/config/sync/editor.editor.basic.yml +++ b/config/sync/editor.editor.basic.yml @@ -37,6 +37,9 @@ settings: multiBlock: true ckeditor5_sourceEditing: allowed_tags: { } + editor_advanced_link_link: + enabled_attributes: + - target linkit_extension: linkit_enabled: true linkit_profile: default diff --git a/config/sync/editor.editor.limited.yml b/config/sync/editor.editor.limited.yml index 4529c9944a..4efa44ca23 100644 --- a/config/sync/editor.editor.limited.yml +++ b/config/sync/editor.editor.limited.yml @@ -23,6 +23,9 @@ settings: plugins: ckeditor5_sourceEditing: allowed_tags: { } + editor_advanced_link_link: + enabled_attributes: + - target linkit_extension: linkit_enabled: true linkit_profile: default diff --git a/config/sync/filter.format.basic.yml b/config/sync/filter.format.basic.yml index b80fa4ef19..d56f5a07a3 100644 --- a/config/sync/filter.format.basic.yml +++ b/config/sync/filter.format.basic.yml @@ -12,6 +12,6 @@ filters: status: true weight: -10 settings: - allowed_html: '