diff --git a/package.json b/package.json index b3858d055..0d7c8eea1 100644 --- a/package.json +++ b/package.json @@ -59,9 +59,5 @@ "electron": "^1.4.15", "electron-builder": "^11.7.0", "electron-debug": "^1.1.0" - }, - "dependencies": { - "react-simplemde-editor": "^3.6.11", - "style-loader": "^0.18.2" } } diff --git a/ui/js/component/form.js b/ui/js/component/form.js index 12781023b..3f9f1ffec 100644 --- a/ui/js/component/form.js +++ b/ui/js/component/form.js @@ -86,6 +86,8 @@ export class FormField extends React.PureComponent { getValue() { if (this.props.type == "checkbox") { return this.refs.field.checked; + } else if (this.props.type == "SimpleMDE") { + return this.refs.field.simplemde.value(); } else { return this.refs.field.value; }