Skip to content

Commit

Permalink
Fixes #72 #70
Browse files Browse the repository at this point in the history
- 3.6.17 release
- TS Rewrite
- Babel 7 bump
  • Loading branch information
RIP21 committed Oct 27, 2018
1 parent c70efa9 commit 9acd06c
Show file tree
Hide file tree
Showing 22 changed files with 14,238 additions and 3,992 deletions.
28 changes: 0 additions & 28 deletions .babelrc

This file was deleted.

6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Only two dependencies, React and SimpleMDE.
## New in v3
- The `initialValue` prop has been removed and replaced with a `value` prop, allowing direct changes to the value to be made after the component mounts.
- Updated in v3.6.8, if rendering server-side, you can set static ids to avoid errors in rendering synchronization.
- v3.6.17, TypeScript typings added.

## New in v2
Version 1.0 did not have SimpleMDE options configured well, this readme reflects the changes made to better include options.
Expand All @@ -20,15 +21,16 @@ npm install --save react-simplemde-editor
```

## Demo
http://www.benrlodge.com/projects/react-simplemde
http://www.benrlodge.com/projects/react-simplemde (old but working demo)
https://rip21.github.io/react-simplemde-editor/ (this one may be broken :( )

or view it locally:
```
git clone https://github.com/RIP21/react-simplemde-editor.git
cd react-simplemde-editor
yarn install
yarn demo
open browser to localhost:3000
open browser with localhost:3000
```

## Usage
Expand Down
12 changes: 9 additions & 3 deletions demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,19 @@
"dependencies": {
"react": "^16.4.0",
"react-dom": "^16.4.0",
"react-scripts": "1.1.4",
"react-simplemde-editor": "^3.6.16"
"react-scripts": "2.0.5",
"react-simplemde-editor": "^3.6.17"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test --env=jsdom",
"eject": "react-scripts eject"
}
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}
2 changes: 1 addition & 1 deletion demo/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
</style>
</head>
<body>
<span id="forkongithub"><a href="https://github.com/benrlodge/react-simplemde-editor">View the code</a></span>
<span id="forkongithub"><a href="https://github.com/RIP21/react-simplemde-editor">View the code</a></span>
<div class='container'>
<div id="root"></div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions demo/src/App.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { Component } from "react";
import React from "react";
import Demo from "./Demo";

class App extends Component {
class App extends React.Component {
render() {
return <Demo />;
}
Expand Down
5 changes: 3 additions & 2 deletions demo/src/Demo.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,13 @@ class Demo extends React.Component {
<div className="container container-narrow">
<div className="page-header">
<h1>
<a href="https://github.com/benrlodge/react-simplemde-editor">
<a href="https://github.com/RIP21/react-simplemde-editor">
react-simplemde-editor
</a>
</h1>
<p className="lead">
A React.js wrapper for{" "}
<a href="https://github.com/NextStepWebs/simplemde-markdown-editor">
<a href="https://github.com/sparksuite/simplemde-markdown-editor">
simplemde-markdown-editor
</a>.
</p>
Expand All @@ -64,6 +64,7 @@ class Demo extends React.Component {
Click me to update the textValue outside of the editor
</button>
<SimpleMDEReact
className={""}
label="Markdown Editor"
value={this.state.textValue1}
onChange={this.handleChange1}
Expand Down
Loading

0 comments on commit 9acd06c

Please sign in to comment.