content collector should also register the blocks, no idea why this wasnt in before

pull/2500/head
John McLear 2015-01-27 19:16:36 +00:00
parent b6e7ddf874
commit 8fbd7d83b6
1 changed files with 4 additions and 0 deletions

View File

@ -87,6 +87,10 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
"li": 1 "li": 1
}; };
_.each(hooks.callAll('aceRegisterBlockElements'), function(element){
_blockElems[element] = 1;
});
function isBlockElement(n) function isBlockElement(n)
{ {
return !!_blockElems[(dom.nodeTagName(n) || "").toLowerCase()]; return !!_blockElems[(dom.nodeTagName(n) || "").toLowerCase()];