Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 Rich text editor adding '\' to Markdown #5673

Open
bradystroud opened this issue Aug 2, 2021 · 8 comments
Open

🐛 Rich text editor adding '\' to Markdown #5673

bradystroud opened this issue Aug 2, 2021 · 8 comments
Assignees
Labels
area: extensions/widgets/markdown pinned type: bug code to address defects in shipped code

Comments

@bradystroud
Copy link
Contributor

Describe the bug
Sometimes when using the rich text editor where image are present, back slashes are added to the markdown

To Reproduce

Expected behavior
Slashes should not be added to Markdown

Screenshots
2021-08-02_10-13-30

Applicable Versions:

  • Netlify CMS version: 2.15.27
  • Git provider: GitHub
  • OS: MacOS 11.5.1
  • Browser version Safari 14.1.2

Issue occurs on all browsers.

CMS configuration
https://github.com/SSWConsulting/SSW.Rules/blob/main/src/cms/config.js

@bradystroud bradystroud added the type: bug code to address defects in shipped code label Aug 2, 2021
@Hardik-hi
Copy link

@bradystroud I'm interested in working out the issue. Can you provide the md/rtf where this issue occured?

@adamcogan
Copy link

So annoying. I think it is on files that have :::
We use those 3 colons for templates. grrrrrr
-a
www.adamcogan.com

@bradystroud
Copy link
Contributor Author

bradystroud commented Jun 24, 2022

To attack this problem, I was planning disable the rich text editor until it was fixed. This would force users to use the Markdown editor.
The problem with this is the Markdown editor offers no way to upload images 😕

  • Investigate the difficulty of allowing image uploads in the markdown editor
    It might be possible to add a image widget outside of the editor, and reference these images from the markdown editor

@bradystroud bradystroud changed the title Rich text editor adding '\' to Markdown 🐛 Rich text editor adding '\' to Markdown Jun 24, 2022
@bradystroud
Copy link
Contributor Author

This issue might be fixed by #5795

@bradystroud
Copy link
Contributor Author

The rich text editor can be easily disabled using the modes config on the Markdown widget https://www.netlifycms.org/docs/widgets/#markdown

Currently there is no clear way to upload an image in this mode without adding an image field to the frontmatter.
I have created a discussion to confirm this #6497

@stale
Copy link

stale bot commented Apr 26, 2023

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@bradystroud
Copy link
Contributor Author

Hey Team, this is still an issue.

@martinjagodic
Copy link
Member

Possibly related: #512

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: extensions/widgets/markdown pinned type: bug code to address defects in shipped code
Projects
Status: In Progress
Development

No branches or pull requests

7 participants