mirror of https://github.com/status-im/codimd.git
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() {
|
||||
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 New Issue