basic test and hacked in stuff

This commit is contained in:
John McLear 2021-01-12 20:21:55 +00:00
parent 62906d72a2
commit e39e959347
2 changed files with 14 additions and 7 deletions

View file

@ -76,6 +76,7 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
p: 1,
pre: 1,
li: 1,
img: 1,
};
_.each(hooks.callAll('ccRegisterBlockElements'), (element) => {
@ -421,12 +422,10 @@ function makeContentCollector(collectStyles, abrowser, apool, domInterface, clas
cls,
node,
});
} else {
// THIS SEEMS VERY HACKY! -- Please submit a better fix!
delete state.lineAttributes.img;
}
// cc.doAttrib(state, 'image:foo.png');
state.lineAttributes.img = 'foo.png';
if (tname == 'br') {
} else if (tname == 'br') {
this.breakLine = true;
const tvalue = dom.nodeAttr(node, 'value');
const induceLineBreak = hooks.callAll('collectContentLineBreak', {