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,7 +450,19 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
var tname = (dom.nodeTagName(node) || "").toLowerCase();
|
||||||
if (tname == "br")
|
if (tname == "br")
|
||||||
{
|
{
|
||||||
cc.startNewLine(state);
|
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")
|
else if (tname == "script" || tname == "style")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue