Preview not working

Created on 7 July 2022, over 2 years ago
Updated 2 March 2023, almost 2 years ago

Problem/Motivation

The preview functionality does not work. The JS script is not working as expected.

Steps to reproduce

On a Drupal 9 site, install the module. Go to the "/admin/appearance/settings" page and select a theme in the menu. Check the field " Enable auto preview". It should load an iframe with the homepage content below.

Proposed resolution

With Drupal 9, the rendered form field ids are different and the JS could not locate them.
The script try to find '#edit-autopreview-enabled' and '#edit-plaintext-enabled'.
So we have to add specific id attributes to the fields in the "css_editor_form_system_theme_settings_alter" function.

πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡«πŸ‡·France madchris

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024