ether / ep_comments_page

Comments in Etherpad - No Longer Highly Experimental, now highly awesome!
Apache License 2.0
45 stars 48 forks source link

Error while trying to copy/paste pad 's content #173

Closed LeaChemoul closed 3 years ago

LeaChemoul commented 3 years ago

Context

Behavior

When performing a ctrl+c (or ⌘+c) on selected pad content an error occurs saying Cannot read property 'documentAttributeManager' of undefined at Object.exports.getCommentIdOnFirstPositionSelected. That why i suppose it is linked to this plugin.

The issue persists even if i try on :

Failure Logs

When opening developer tools, console display this error.

VM217:262 Uncaught TypeError: Cannot read property 'documentAttributeManager' of undefined
    at Object.exports.getCommentIdOnFirstPositionSelected (eval at _compileFunction (require-kernel.js?v=c3b122cf:226), <anonymous>:262:33)
    at eval (eval at _compileFunction (require-kernel.js?v=c3b122cf:226), <anonymous>:15:44)
    at wrapper (eval at _compileFunction (test:227), <anonymous>:692:14)
    at Object.Ace2Inner.editorInfo.ace_callWithAce (eval at _compileFunction (test:227), <anonymous>:706:14)
    at Object.<anonymous> (pad.js?callback=require.define&v=c3b122cf:3183)
    at action (pad.js?callback=require.define&v=c3b122cf:3136)
    at Object.callWithAce (pad.js?callback=require.define&v=c3b122cf:3144)
    at Object.exports.addTextOnClipboard (eval at _compileFunction (require-kernel.js?v=c3b122cf:226), <anonymous>:14:7)
    at HTMLDocument.eval (eval at _compileFunction (require-kernel.js?v=c3b122cf:226), <anonymous>:372:14)
    at HTMLDocument.dispatch (ace2_common.js?callback=require.define&v=c3b122cf:5492)

Failure image

Capture d’écran 2020-12-08 à 10 26 28
JohnMcLear commented 3 years ago

Confirmed.

JohnMcLear commented 3 years ago

Fixed and published.