diff --git a/src/index.js b/src/index.js
index 1ffac05..0ce4940 100644
--- a/src/index.js
+++ b/src/index.js
@@ -513,13 +513,14 @@ function MarkdownEditor(props) {
return (
-
-
-
-
- {card}
-
-
+ { props.showEditButton ?
+
+
+ : null }
+
+ {card}
+
+
);
}
@@ -550,6 +551,11 @@ MarkdownEditor.propTypes = {
*/
lockText: PropTypes.bool,
+ /**
+ * If true then show the edit button.
+ */
+ showEditButton: PropTypes.bool,
+
/**
* An array of plugins to extend the functionality of the editor
*/
@@ -568,5 +574,11 @@ MarkdownEditor.propTypes = {
schema: PropTypes.object.isRequired,
})),
};
+/**
+ * The default property values for this component
+ */
+MarkdownEditor.defaultProps = {
+ showEditButton: true,
+}
export { MarkdownEditor };