mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-21 07:56:16 -04:00
patch for e1c683be3f
This commit is contained in:
parent
036b7d2890
commit
8eb723b906
1 changed files with 5 additions and 1 deletions
|
@ -518,7 +518,11 @@ function makeContentCollector(collectStyles, browser, apool, domInterface, class
|
||||||
}
|
}
|
||||||
if (tname == "ul" || tname == "ol")
|
if (tname == "ul" || tname == "ol")
|
||||||
{
|
{
|
||||||
|
if(node.attribs){
|
||||||
var type = node.attribs.class;
|
var type = node.attribs.class;
|
||||||
|
}else{
|
||||||
|
var type = null;
|
||||||
|
}
|
||||||
var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls);
|
var rr = cls && /(?:^| )list-([a-z]+[12345678])\b/.exec(cls);
|
||||||
// lists do not need to have a type, so before we make a wrong guess, check if we find a better hint within the node's children
|
// lists do not need to have a type, so before we make a wrong guess, check if we find a better hint within the node's children
|
||||||
if(!rr && !type){
|
if(!rr && !type){
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue