summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--system/admin/static/editor/js/materialNote.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/admin/static/editor/js/materialNote.js b/system/admin/static/editor/js/materialNote.js
index 02e1bd2..a036053 100644
--- a/system/admin/static/editor/js/materialNote.js
+++ b/system/admin/static/editor/js/materialNote.js
@@ -4859,6 +4859,10 @@ var dom = (function() {
}
insideLastBlock = false;
}
+
+ if (level < 0) {
+ level = 0;
+ }
chunk = new Array(level + 1).join(' ') + chunk.trim();
//console.log(level);