decap-cms icon indicating copy to clipboard operation
decap-cms copied to clipboard

🐛 Rich text editor adding '\' to Markdown

Open bradystroud opened this issue 4 years ago • 5 comments

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 avatar Aug 02 '21 00:08 bradystroud

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

Hardik-hi avatar Aug 25 '21 11:08 Hardik-hi

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

adamcogan avatar Feb 28 '22 06:02 adamcogan

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 avatar Jun 24 '22 01:06 bradystroud

This issue might be fixed by #5795

bradystroud avatar Jun 24 '22 04:06 bradystroud

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

bradystroud avatar Jun 24 '22 05:06 bradystroud

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.

stale[bot] avatar Apr 26 '23 09:04 stale[bot]

Hey Team, this is still an issue.

bradystroud avatar May 02 '23 01:05 bradystroud

Possibly related: #512

martinjagodic avatar Aug 24 '23 11:08 martinjagodic