Include a schema for keys elf_nofollow, elf_noopener, elf_noreferrer

Created on 5 August 2024, 8 months ago
Updated 13 September 2024, 7 months ago

Problem/Motivation

Updating from 10.2.7 to 10.3.1 produces an error whenever trying to save the config

'elf_nofollow' is not a supported key.
'elf_noopener' is not a supported key.
'elf_noreferrer' is not a supported key.

Steps to reproduce

Create a text format using elf under 10.2.7, upgrade to 10.3.1, attempt to make changes.

Proposed resolution

It seems this was solved πŸ› 'check_roles' is not a supported key RTBC in insert_blocks by adding a schema file to the module. We already have a schema, so I propose this is added to the end of it:

filter_settings.filter_elf:
  type: filter
  label: 'External Links Filter'
  mapping:
    elf_nofollow:
      type: string
      label: 'Add rel="nofollow" to external links'
    elf_noopener:
      type: string
      label: 'Add rel="noopener" to external links'
    elf_noreferrer:
      type: string
      label: 'Add rel="noreferrer" to external links'

Remaining tasks

Check proposed solution works
Create MR/patch
Merge

User interface changes

none

API changes

none

Data model changes

none

πŸ› Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom jacobupal Leeds

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024