mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2025-07-31 05:44:27 -06:00
Merge 0a53779b54583287dd09ab5bb048334207cc19bb into e32fe3f91c2d45f27f72a3662133b1c0e1a5bda1
This commit is contained in:
commit
b8d5956d2e
@ -1365,7 +1365,7 @@ function SimpleMDE(options) {
|
|||||||
|
|
||||||
// Handle status bar
|
// Handle status bar
|
||||||
if(!options.hasOwnProperty("status")) {
|
if(!options.hasOwnProperty("status")) {
|
||||||
options.status = ["autosave", "lines", "words", "cursor"];
|
options.status = ["autosave", "lines", "words", "cursor", "characters"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1859,7 +1859,14 @@ SimpleMDE.prototype.createStatusbar = function(status) {
|
|||||||
el.setAttribute("id", "autosaved");
|
el.setAttribute("id", "autosaved");
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
} else if(name === "characters") {
|
||||||
|
defaultValue = function(el) {
|
||||||
|
el.innerHTML = "0"
|
||||||
|
};
|
||||||
|
onUpdate = function(el) {
|
||||||
|
el.innerHTML = cm.getValue().length;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
items.push({
|
items.push({
|
||||||
className: name,
|
className: name,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user