field-editors icon indicating copy to clipboard operation
field-editors copied to clipboard

Editor markdown does not work correctly

Open dmbdesignpdx opened this issue 3 years ago • 5 comments

Hello, there is some kind of bug preventing a user from using the markdown editor as expected (compared to the one in the builtin entry editor).

How it's implemented

Via @contentful/create-contentful-app using the @contentful/app-sdk:

<FieldWrapper
  sdk={sdkRef}
  name={label}
>
  <Field
    sdk={sdkRef}
    widgetId={widget}
  />
</FieldWrapper>

Expected behavior

Builtin entry editor:

https://user-images.githubusercontent.com/5041305/153087205-861baae1-8bbc-4763-879d-f1684939d58c.mov

Actual behavior

FieldWrapper with Field

https://user-images.githubusercontent.com/5041305/153087335-a31ec048-4b39-44ca-85a5-9a99943edb68.mov

Versions

  • @contentful/default-field-editors: 1.1.2
    • @contentful/field-editor-markdown: 1.1.1
  • @contentful/app-scripts: 0.14.114
  • @contentful/app-sdk: 4.3.1
  • npm: 8.1.2
  • node: 16.13.1

Please let me know if there is anything else I need to provide. Thank you.

dmbdesignpdx avatar Feb 08 '22 22:02 dmbdesignpdx

Any update here? I'm experiencing the same problem...

jjagutzke avatar May 06 '22 21:05 jjagutzke

this behavior still persists when creating a brand new contentful app via @contentful/create-contentful-app@latest.

updated versions:

  • @contentful/default-field-editors: 1.1.16
  • @contentful/app-scripts: 1.1.2
  • @contentful/app-sdk: 4.4.0
  • node: 16.15.0
  • npm: 8.9.0

dmbdesignpdx avatar May 12 '22 21:05 dmbdesignpdx

Marking issue as stale since there was no acitivty for 30 days

github-actions[bot] avatar Aug 05 '22 07:08 github-actions[bot]

Marking issue as stale since there was no acitivty for 30 days

github-actions[bot] avatar Sep 05 '22 07:09 github-actions[bot]

?

dmbdesignpdx avatar Sep 13 '22 22:09 dmbdesignpdx

Marking issue as stale since there was no activity for 30 days

github-actions[bot] avatar Oct 14 '22 07:10 github-actions[bot]

I have a similar problem. When I use the markdown widgetId with the default-field-editors the markdown is not editable. If I click on the formatting buttons, I can add text or remove it (temporarily) but my changes are not visible in the editor. The character counter at the bottom is changing, and if I click preview I can see something happens.

simomill avatar Jan 17 '23 10:01 simomill

Marking issue as stale since there was no activity for 30 days

github-actions[bot] avatar Feb 18 '23 07:02 github-actions[bot]

This is still happening, did someone find a solution?

mata998 avatar Mar 23 '23 15:03 mata998

I've encountered same problem today

filipjovasevic996 avatar Mar 24 '23 12:03 filipjovasevic996

I've encountered same problem today

I've resolved this problem by importing import 'codemirror/lib/codemirror.css'. Unfortunately, now i have other issue which is exactly the same like this one https://github.com/contentful/field-editors/issues/1383

filipjovasevic996 avatar Apr 04 '23 17:04 filipjovasevic996

Marking issue as stale since there was no activity for 30 days

github-actions[bot] avatar May 05 '23 07:05 github-actions[bot]

We just released a fix for this issue with @contentful/[email protected]

YvesRijckaert avatar Oct 13 '23 13:10 YvesRijckaert