tutorialkit icon indicating copy to clipboard operation
tutorialkit copied to clipboard

Display images

Open eric-burel opened this issue 1 year ago • 0 comments

Is your feature request related to a problem?

Codemirror editor doesn't seem to support images image

Describe the solution you'd like.

Display images within the code editor

Describe alternatives you've considered.

This behaviour is implemented in the react package CodeMirrorEditor: "packages/react/src/core/CodeMirrorEditor/BinaryContent.tsx" which is triggered there: "packages/react/src/core/CodeMirrorEditor/index.tsx"

Additional context

I think this is a good first issue:

  • we can detect images via mime-type
  • and then display them Would a PR creating a new "ImageContent" component be accepted? Does display images create any sort of security risk?

eric-burel avatar Sep 03 '24 08:09 eric-burel