Collapse on wysiwyg in source edit mode does not save

Created on 20 April 2023, over 1 year ago
Updated 13 July 2023, over 1 year ago

Problem/Motivation

Edits are not saved to form state when using ckeditor's source button.
I realize this is a pretty edge case so marking as minor but thought I'd report it just in case.

Steps to reproduce

  • Create a paragraphs field using form display options: Edit mode closed, Closed mode summary, Autocollapse All
  • Make sure one or more of those has a text field that uses ckeditor
  • When adding paragraphs to content, click the Source button on ckeditor and make edits
  • Do NOT click source button again, instead click the Collapse button
  • Reopen the collapsed content and the edits are gone.

Proposed resolution

When editing in source mode, content should still be saved to form state OR if this is expected behavior, perhaps providing a warning or alert for edits that may be lost

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.15

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rosemarystanley

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

Comments & Activities

  • Issue created by @rosemarystanley
  • πŸ‡ΊπŸ‡ΈUnited States seoulpanda20

    What Text Format is the WYSIWYG using? I've found that it usually needs to be in order to do extensive stuff in the source code.

    Otherwise, it simply gets erased when you switch back to markup view.

Production build 0.71.5 2024