};
}
+ var captionhtml = this.caption_display == 'hidden' ? this.caption : (this.caption.length ? this.caption : "Caption");
+
return {
tag: 'figure',
'data-block' : 'Figure',
// we can not rely on yahoo syndication to use CSS elements - so have to use '<i>' to encase stuff.
tag : 'i',
contenteditable : true,
- html : this.caption
+ html : captionhtml
}
]
new Roo.htmleditor.FilterParagraph({node : this.doc.body}); // paragraphs
new Roo.htmleditor.FilterSpan({node : this.doc.body}); // empty spans
}
+ if (this.enableBlocks) {
+ Roo.htmleditor.Block.initAll(this.doc.body);
+ }
- Roo.htmleditor.Block.initAll(this.doc.body);
this.updateLanguage();
var lc = this.doc.body.lastChild;
//Roo.log(imgs);
// fixme..
images = images.filter(function(g) { return !g.path.match(/^rtf\/(head|pgdsctbl|listtable)/); }) // ignore headers
- .map(function(g) { return g.toDataURL(); });
+ .map(function(g) { return g.toDataURL(); })
+ .filter(function(g) { return g != 'about:blank'; });
html = this.cleanWordChars(html);