Issue Bug Closed

#52265Paste is not working in empty textarea (firefox)

Georg Ringer 09/25/13, 15:12 updated 01/07/15, 14:22

Description

if the textarea is empty, it is not possible to paste anything into the field.
JS error is

TypeError: next is undefined
var nextNode = next.to;

in typo3/contrib/codemirror/js/undo.js line 342

...
 shadowChain: function(chain) {
var shadows = [], next = this.after(chain[0].from), end = chain[chain.length - 1].to;
while (true) {
shadows.push(next);
=>>>>>>> var nextNode = next.to; <=====
if (!nextNode || nextNode == end)
break;
else
next = nextNode.historyAfter || this.before(end);
// (The this.before(end) is a hack -- FF sometimes removes
// properties from BR nodes, in which case the best we can hope
// for is to not break.)
}
return shadows;
}, 
...

reproduceable also at least in 6.1 but I guess also in other versions.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.