mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-08 16:05:05 -04:00
fixed style disapearing when adding a char + added a comment to describe the trick in contentcollector
This commit is contained in:
parent
edc9212ff1
commit
666bdcaaf8
3 changed files with 5 additions and 2 deletions
|
@ -457,6 +457,10 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
|||
}
|
||||
else if (!isEmpty)
|
||||
{
|
||||
//It is interesting to notice that the rendering code of this part relies
|
||||
//on the attributes stored in the "class" attribute of the DOM element.
|
||||
//It means that whenever one wants to create a new attribute, he will
|
||||
//need to put it as a class !
|
||||
var styl = dom.nodeAttr(node, "style");
|
||||
var cls = dom.nodeProp(node, "className");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue