mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 10:46:23 +00:00
Fixed when change widthInput value not parse correctly which cause tab indent problems
This commit is contained in:
parent
b2b1be3dda
commit
d97e435b3b
@ -389,7 +389,7 @@ function setIndent() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
widthInput.on('change', function() {
|
widthInput.on('change', function() {
|
||||||
var val = widthInput.val();
|
var val = parseInt(widthInput.val());
|
||||||
if (!val) val = editor.getOption('indentUnit');
|
if (!val) val = editor.getOption('indentUnit');
|
||||||
if (val < 1) val = 1;
|
if (val < 1) val = 1;
|
||||||
else if (val > 10) val = 10;
|
else if (val > 10) val = 10;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user