Ionaru / easy-markdown-editor

EasyMDE: A simple, beautiful, and embeddable JavaScript Markdown editor. Delightful editing for beginners and experts alike. Features built-in autosaving and spell checking.
https://stackblitz.com/edit/easymde
MIT License
2.32k stars 308 forks source link

Hide 'upload-image' icon #511

Open Annajoe96 opened 1 year ago

Annajoe96 commented 1 year ago

Describe the bug I have been trying to hide the upload image icon ,which is possible for the heading icon but not this 'upload-image'.

To Reproduce Steps to reproduce the behavior: `

import EasyMDE from "react-simplemde-editor";
import "easymde/dist/easymde.min.css";
import PropTypes from 'prop-types';

const MarkdownEditorField = ({ className, value, onChange }) => {
  return (
    <div data-color-mode="light">
      <EasyMDE
        className={className}
        value={value}
        placeholder="Write something here..."
        onChange={onChange}
        options={{
          hideIcons: ['upload-image']
        }}
      />
    </div>
  );
};

`