mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-25 10:54:28 -06:00
Update readability again
This commit is contained in:
parent
c45ada1c6b
commit
fd3983ff29
12
README.md
12
README.md
@ -36,7 +36,7 @@ simplemde.render();
|
|||||||
|
|
||||||
jQuery method
|
jQuery method
|
||||||
|
|
||||||
```JavaScript
|
```HTML
|
||||||
<script>
|
<script>
|
||||||
var simplemde = new SimpleMDE($("#MyID")[0]);
|
var simplemde = new SimpleMDE($("#MyID")[0]);
|
||||||
simplemde.render();
|
simplemde.render();
|
||||||
@ -51,8 +51,6 @@ simplemde.codemirror.getValue();
|
|||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
#### JS
|
|
||||||
|
|
||||||
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
||||||
- **status**: If set `false`, hide the status bar. Defaults to `true`.
|
- **status**: If set `false`, hide the status bar. Defaults to `true`.
|
||||||
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
||||||
@ -63,7 +61,6 @@ simplemde.codemirror.getValue();
|
|||||||
- **tabSize**: If set, customize the tab size. Defaults to `'2'`.
|
- **tabSize**: If set, customize the tab size. Defaults to `'2'`.
|
||||||
|
|
||||||
```JavaScript
|
```JavaScript
|
||||||
<script>
|
|
||||||
new SimpleMDE({
|
new SimpleMDE({
|
||||||
element: document.getElementById("MyID"),
|
element: document.getElementById("MyID"),
|
||||||
status: false,
|
status: false,
|
||||||
@ -74,29 +71,22 @@ new SimpleMDE({
|
|||||||
indentWithTabs: false,
|
indentWithTabs: false,
|
||||||
tabSize: '4',
|
tabSize: '4',
|
||||||
});
|
});
|
||||||
</script>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
#### CSS
|
|
||||||
|
|
||||||
To change the minimum height (before it starts auto-growing):
|
To change the minimum height (before it starts auto-growing):
|
||||||
|
|
||||||
```CSS
|
```CSS
|
||||||
<style>
|
|
||||||
.CodeMirror {
|
.CodeMirror {
|
||||||
min-height: 300px;
|
min-height: 300px;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
Or, you can keep the height static:
|
Or, you can keep the height static:
|
||||||
|
|
||||||
```CSS
|
```CSS
|
||||||
<style>
|
|
||||||
.CodeMirror {
|
.CodeMirror {
|
||||||
height: 300px;
|
height: 300px;
|
||||||
}
|
}
|
||||||
</style>
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## How it works
|
## How it works
|
||||||
|
Loading…
x
Reference in New Issue
Block a user