-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
area: extensions/widgets/markdowntype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
Describe the bug
When I add an image to a markdown widget and then edit as Markdown. Switching back to "Rich Text" means the image disappears. This seems to have crept in in release 3.8.0. 3.7.2 is fine.
To Reproduce
- Add an image to a markdown widget
- Switch from "Rich Text" mode to "Markdown" mode
- Add some text in Markdown mode
- Switch back to Rich Text mode
Expected behavior
To still see the image in the editor, along with the Alt Text and Title fields
Rich Text mode after adding some markdown:
Applicable Versions:
v3.8.0 onwards
CMS configuration
Here's a simplified config I have replicated the issue with:
backend:
name: test-repo
repo: *****
use_graphql: true
squash_merges: true
publish_mode: editorial_workflow
media_folder: "static/images/uploads"
public_folder: "/images/uploads"
collections:
- label: "Use cases"
name: "use_cases"
folder: "content/use_cases"
create: true
slug: "{{title}}"
fields:
- label: "Title"
name: "title"
widget: "string"
- label: "Challenge"
name: "challenge"
widget: "markdown"
buttons: ["bold", "italic", "code", "link", "quote", "bulleted-list", "numbered-list"]
required: false
Additional context
Thank you!
devova and yhranik-vp
Metadata
Metadata
Assignees
Labels
area: extensions/widgets/markdowntype: bugcode to address defects in shipped codecode to address defects in shipped code