diff --git a/src/static/js/contentcollector.js b/src/static/js/contentcollector.js index 446113a13..d40236009 100644 --- a/src/static/js/contentcollector.js +++ b/src/static/js/contentcollector.js @@ -665,8 +665,12 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas { if (lines.length() - 1 == startLine) { - // commented out to solve #2412 - https://github.com/ether/etherpad-lite/issues/2412 - // cc.startNewLine(state); + // to solve #2412 - https://github.com/ether/etherpad-lite/issues/2412 + // added additional check to resolve https://github.com/JohnMcLear/ep_copy_paste_images/issues/20 + // this does mean that images etc can't be pasted on lists but imho that's fine + if(state.lineAttributes && !state.lineAttributes.list){ + cc.startNewLine(state); + } } else {