sanity-io / sanity-plugin-markdown

Markdown support in the Sanity Studio
MIT License
51 stars 8 forks source link

Click-to-Edit in sanity/presentation Fails to Highlight Field #103

Open judysocute opened 1 month ago

judysocute commented 1 month ago

Describe the bug

When using this data type, the click-to-edit functionality in sanity/presentation stopped working for the field. Even though I used the directed URL http://localhost:3333/presentation/blogPost/{{id}}/{{filedName}}, it still doesn't automatically highlight it.

To Reproduce

Steps to reproduce the behavior:

  1. Create a page that uses this field.
  2. Implement a live preview presentation on the page or website by following this guide: https://www.sanity.io/guides/nextjs-app-router-live-preview
  3. Find the click-to-edit field of this type
  4. See error

Expected behavior

I expected to fully link the field.

Screenshots

bug_response

Which versions of Sanity are you using?

@sanity/cli (global) 3.59.0 (latest: 3.60.0) @sanity/asset-utils 1.3.0 (latest: 2.0.6) @sanity/eslint-config-studio 4.0.0 (up to date) @sanity/vision 3.60.0 (up to date) sanity 3.60.0 (up to date)

What operating system are you using?

Mac OS 14.6.1

Which versions of Node.js / npm are you running?

10.2.3 v20.10.0

Additional context

Security issue?

sameerxanand commented 11 hours ago

This is still an issue for me using the latest versions of the plugin and of Sanity + Next.js.