Closed snacksthecat closed 10 months ago
A little bit of extra information that I found.
When using the markdown editor in Chrome, random words appear as misspelled. When inspecting the page, the extra character can be seen there.
But using the markdown editor in Firefox, the issue does not happen, and the generated md file does not include the extra characters.
Also been having this. Wondering how it's screwing up my SEO. I essentially cannot use this headless CMS anymore. Looking for alternatives.
I'm having same issue. FYI, it's BOM character (U+FEFF)
Is there no fix for this yet?
Apparently, the markdown editor widget uses Slate v0.47 and it will add BOM \uFEFF
since Chrome v105 when content is empty.
I followed the discussion on breaking changes in Chrome v105 and they suggested changing CSS property WebkitUserModify: 'read-write-plaintext-only'
of the editor to WebkitUserModify: 'read-write'
.
I replaced that in netlify-cms.min.js
and now it kinda worked:
They also mentioned that Slate before v0.59 is around ~2.5 to 3 years old so this thing may only show up in old versions...
@bjxpen that's amazing!
well i'll be. I saved https://unpkg.com/netlify-cms@2.10.192/dist/netlify-cms.js locally to my project and made the change you said and it seems so far so great!
Any progress on this? I just installed netlify cms and was quite off-putted by this. Fairly difficult to debug as well so I imagine it's hard to find find this issue for many people.
The suggestion by @bjxpen seems to work nicely. Hopefully a Slate upgrade is in the plans, or at least check if that fixes the issue
Slate was updated so this issue is fixed in Decap 3.
Describe the bug An extra character (ZERO WIDTH NO-BREAK SPACE) is being added to body of the produced md files when creating a collection entry through the CMS.
To Reproduce 1) I defined my admin.yml. 2) Created a new entry through the CMS and published. Netlify built site. 3) Fetch/pull the updates from GitHub. 4) Opened the md file in VS Code and saw that each line had an extra character inserted.
Expected behavior Expected to see only the contents that were typed into the CMS, without the extra character.
Screenshots![chrome_Xrrz4UtL6p](https://user-images.githubusercontent.com/26846031/203450140-af45a7d9-56fa-4a9e-89f7-0532c5258c78.png)
Applicable Versions:
CMS configuration