diff --git a/core/editor.js b/core/editor.js index e62826528d..94f6af97a3 100644 --- a/core/editor.js +++ b/core/editor.js @@ -30,7 +30,7 @@ class Editor { if (op.insert != null) { deleteDelta.retain(length); if (typeof op.insert === 'string') { - let text = op.insert; + const text = op.insert; addedNewline = !text.endsWith('\n') && (scrollLength <= index ||