-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Statusbar init lines and words values #299
Comments
What about changing the default values? if(name === "words") {
defaultValue = function(el) {
el.innerHTML = wordCount(cm.getValue());
//el.innerHTML = "0";
};
onUpdate = function(el) {
el.innerHTML = wordCount(cm.getValue());
};
} else if(name === "lines") {
defaultValue = function(el) {
el.innerHTML = cm.lineCount();
//el.innerHTML = "0";
};
onUpdate = function(el) {
el.innerHTML = cm.lineCount();
};
}
... |
FabianKoestring
changed the title
Statusbar refresh lines and words values
Statusbar init lines and words values
Apr 17, 2016
WesCossick
pushed a commit
that referenced
this issue
Jun 8, 2016
This will be released in the next version of SimpleMDE. |
Merged
jfly
added a commit
to jfly/worldcubeassociation.org
that referenced
this issue
Jul 29, 2019
The status bar *does* work now, but I don't think we should turn it on unless there's a reason to. See sparksuite/simplemde-markdown-editor#334 and sparksuite/simplemde-markdown-editor#299.
jfly
added a commit
to jfly/worldcubeassociation.org
that referenced
this issue
Jul 29, 2019
The status bar *does* work now, but I don't think we should turn it on unless there's a reason to. See sparksuite/simplemde-markdown-editor#334 and sparksuite/simplemde-markdown-editor#299.
jfly
added a commit
to jfly/worldcubeassociation.org
that referenced
this issue
Jul 31, 2019
The status bar *does* work now, but I don't think we should turn it on unless there's a reason to. See sparksuite/simplemde-markdown-editor#334 and sparksuite/simplemde-markdown-editor#299.
jfly
added a commit
to thewca/worldcubeassociation.org
that referenced
this issue
Jul 31, 2019
The status bar *does* work now, but I don't think we should turn it on unless there's a reason to. See sparksuite/simplemde-markdown-editor#334 and sparksuite/simplemde-markdown-editor#299.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey there!
I have following problem. Everytime i set a text in an textarea the statusbar values like
lines
andwords
doesnt update on there own. I have to go into the textarea and type any char to refresh the values.Is there a way to refresh the values on my own? Or maybe this is a bug or even i do something wrong with the initialisation of the element?
https://jsfiddle.net/ggnfjjvf/1/
Thanks!
The text was updated successfully, but these errors were encountered: