mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-09 08:25:00 -04:00
Added hook in cc.js
This commit is contained in:
parent
4195e11a41
commit
4a781b920f
1 changed files with 11 additions and 1 deletions
|
@ -372,7 +372,17 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
_reachBlockPoint(node, 0, state);
|
||||
if (dom.isNodeText(node))
|
||||
{
|
||||
var txt = dom.nodeValue(node);
|
||||
var tname = dom.nodeAttr(node.parentNode,"name");
|
||||
hooks.callAll('collectContentTblTd', {
|
||||
cc: this,
|
||||
state: state,
|
||||
tname: tname,
|
||||
node:node,
|
||||
text:dom.nodeValue(node),
|
||||
styl: null,
|
||||
cls: null
|
||||
});
|
||||
var txt = this.text||dom.nodeValue(node);
|
||||
var rest = '';
|
||||
var x = 0; // offset into original text
|
||||
if (txt.length == 0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue