X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=roojs-bootstrap-debug.js;h=2d53d547612c98c1655520f303165252c160c546;hb=refs%2Fheads%2Fwip_alan_T6962_html_editor_update_to_new;hp=f8ab6a0624d0068f5c899c9faef5a4d27fb3518f;hpb=57020a5ecb4d304b4ecc9e299d51810eafffc5de;p=roojs1 diff --git a/roojs-bootstrap-debug.js b/roojs-bootstrap-debug.js index f8ab6a0624..2d53d54761 100644 --- a/roojs-bootstrap-debug.js +++ b/roojs-bootstrap-debug.js @@ -27281,6 +27281,8 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { }; } + var captionhtml = this.caption_display == 'hidden' ? this.caption : (this.caption.length ? this.caption : "Caption"); + return { tag: 'figure', 'data-block' : 'Figure', @@ -27316,7 +27318,7 @@ Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, { // we can not rely on yahoo syndication to use CSS elements - so have to use '' to encase stuff. tag : 'i', contenteditable : true, - html : this.caption + html : captionhtml } ] @@ -29048,8 +29050,10 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { 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; @@ -29183,7 +29187,8 @@ Roo.extend(Roo.HtmlEditorCore, Roo.Component, { //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);