Skip to content

fix(settings): respect the writing mode in the signature editor#13141

Open
joeldj-nl wants to merge 1 commit into
nextcloud:mainfrom
joeldj-nl:fix/signature-editor-writing-mode
Open

fix(settings): respect the writing mode in the signature editor#13141
joeldj-nl wants to merge 1 commit into
nextcloud:mainfrom
joeldj-nl:fix/signature-editor-writing-mode

Conversation

@joeldj-nl

Copy link
Copy Markdown

Fixes #7142

Summary

The signature editor always used rich text mode, even when the account was configured to compose messages as plain text. As a result, signatures containing images or other HTML content could be exposed as raw HTML after switching to plain text mode.

Changes

  • Use the account’s configured writing mode for the signature editor.
  • Re-encode the saved signature when switching between rich text and plain text modes.
  • Warn before switching from rich text to plain text, since that conversion drops formatting, inline images, including content in the signature.
recording-writing-mode.mp4

Assisted-by: Claude:claude-opus-4-8

The signature editor was always rich text, so a signature image was
mangled into raw HTML when the account's writing mode was plain text.

- Drive the signature editor's mode from the account's writing mode and
  re-encode the signature to the active format (HTML or plain text).
- Warn before switching from rich text to plain text, since that drops
  formatting, inline images and links — including those in the signature.

Fixes nextcloud#7142

Assisted-by: Claude:claude-opus-4-8
Signed-off-by: Joël de Jager <contact@joeldejager.nl>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add image support to the text editor: Use editor mode for signature editor

1 participant