Commit 75128050 by ramdayalmunda

delete the empty pages from the end

parent c8ab7bc6
...@@ -280,6 +280,10 @@ var ADocEditor = function (customConfig) { ...@@ -280,6 +280,10 @@ var ADocEditor = function (customConfig) {
} }
ctx.restore() ctx.restore()
} }
// delete the last blank pages
let canvasDeleted = canvasList.splice(canvasIndex+1, canvasList.length-canvasIndex)
for (let i=0; i<canvasDeleted.length; i++) canvasDeleted[i].el.remove();
} }
if (!caretData.blink && caretData.activeData) renderCaret() if (!caretData.blink && caretData.activeData) renderCaret()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment