aboutsummaryrefslogtreecommitdiffstats
path: root/spring-front/src/components/Editor.js
diff options
context:
space:
mode:
authorterminaldweller <thabogre@gmail.com>2022-06-03 14:48:38 +0000
committerterminaldweller <thabogre@gmail.com>2022-06-03 14:48:38 +0000
commit6496bfe08c2c5bae024ae942ed743a5266b30e6d (patch)
tree542867a6236bc28362956bf307d96d1135335497 /spring-front/src/components/Editor.js
parentwip (diff)
downloadmdrtl-6496bfe08c2c5bae024ae942ed743a5266b30e6d.tar.gz
mdrtl-6496bfe08c2c5bae024ae942ed743a5266b30e6d.zip
wip, the crud is working, now have to figure out how to update and save the actual text
Diffstat (limited to 'spring-front/src/components/Editor.js')
-rw-r--r--spring-front/src/components/Editor.js10
1 files changed, 4 insertions, 6 deletions
diff --git a/spring-front/src/components/Editor.js b/spring-front/src/components/Editor.js
index f7c4ec5..d82a3fb 100644
--- a/spring-front/src/components/Editor.js
+++ b/spring-front/src/components/Editor.js
@@ -117,9 +117,9 @@ export default class Editor extends React.Component {
this.setState((prevState) => ({ drawerActive: !prevState.drawerActive }));
}
- render() {
- const { markdownText, drawerTitle, drawerChildren } = this.props;
- const drawerStyles = this.state.drawerActive ? "is-expanded" : "";
+ render(props) {
+ // const { markdownText, drawerTitle, drawerChildren } = this.props;
+ // const drawerStyles = this.state.drawerActive ? "is-expanded" : "";
return (
<div>
<div>
@@ -142,9 +142,7 @@ export default class Editor extends React.Component {
onKeyDown={this.handleKeyDown.bind(this)}
direction="rtl"
tabIndex="0"
- >
- {markdownText}
- </textarea>
+ ></textarea>
</div>
<div className="split right">
<div direction="rtl" id="markdown-placeholder"></div>