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
4a781b920f
commit
0005ec92cb
1 changed files with 13 additions and 1 deletions
|
@ -450,8 +450,20 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
||||
if (tname == "br")
|
||||
{
|
||||
this.breakLine = true;
|
||||
var tvalue = dom.nodeAttr(node, 'value');
|
||||
hooks.callAll('collectContentBreak', {
|
||||
cc: this,
|
||||
state: state,
|
||||
tname: tname,
|
||||
tvalue:tvalue,
|
||||
styl: null,
|
||||
cls: null
|
||||
});
|
||||
if(this.breakLine){
|
||||
cc.startNewLine(state);
|
||||
}
|
||||
}
|
||||
else if (tname == "script" || tname == "style")
|
||||
{
|
||||
// ignore
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue