mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 16:06:16 -04:00
contentcollector: backed out changeset 3292429ab3
That commit (merged recently with PR #3622) was part of an effort to fix #3620, but introduced a very bad bug that broke the cursor behaviour when pressing space, making the program unusable. This commit completes the revert of PR #3622 and fixes #3728. --HG-- branch : revert-3622
This commit is contained in:
parent
c382ba35c9
commit
840b4a0988
1 changed files with 3 additions and 4 deletions
|
@ -406,13 +406,12 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
|
||||||
cc: this,
|
cc: this,
|
||||||
state: state,
|
state: state,
|
||||||
tname: tname,
|
tname: tname,
|
||||||
node: node,
|
node:node,
|
||||||
text: txt,
|
text:txt,
|
||||||
styl: null,
|
styl: null,
|
||||||
cls: null
|
cls: null
|
||||||
});
|
});
|
||||||
var txt = (typeof(txtFromHook)=='object' && txtFromHook.length==0)
|
var txt = (typeof(txtFromHook)=='object'&&txtFromHook.length==0)?dom.nodeValue(node):txtFromHook[0];
|
||||||
? dom.nodeValue(node).trim() : txtFromHook[0].trim();
|
|
||||||
|
|
||||||
var rest = '';
|
var rest = '';
|
||||||
var x = 0; // offset into original text
|
var x = 0; // offset into original text
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue