mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 02:11:29 +00:00
Fixed when change widthInput value not parse correctly which cause tab indent problems
This commit is contained in:
parent
b2b1be3dda
commit
d97e435b3b
1 changed files with 1 additions and 1 deletions
|
@ -389,7 +389,7 @@ function setIndent() {
|
|||
}
|
||||
});
|
||||
widthInput.on('change', function() {
|
||||
var val = widthInput.val();
|
||||
var val = parseInt(widthInput.val());
|
||||
if (!val) val = editor.getOption('indentUnit');
|
||||
if (val < 1) val = 1;
|
||||
else if (val > 10) val = 10;
|
||||
|
|
Loading…
Reference in a new issue