X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=docs%2Fsrc%2FRoo_htmleditor_BlockFigure.js.html;h=0cb7763ed500efa87f691a85b0402f9d5dd2ea42;hb=ec29560d98355e90e9506c0d332b2959434cea28;hp=9833ab418639068b39136165cd5f35167b83f2df;hpb=a78f2c41d7e308fabb67ced13c90e84647514cac;p=roojs1 diff --git a/docs/src/Roo_htmleditor_BlockFigure.js.html b/docs/src/Roo_htmleditor_BlockFigure.js.html index 9833ab4186..0cb7763ed5 100644 --- a/docs/src/Roo_htmleditor_BlockFigure.js.html +++ b/docs/src/Roo_htmleditor_BlockFigure.js.html @@ -310,8 +310,8 @@ ] }; } - - var captionhtml = this.caption_display == 'hidden' ? this.caption : (this.caption.length ? this.caption : "Caption"); + // we remove caption totally if its hidden... - will delete data.. but otherwise we end up with fake caption + var captionhtml = this.caption_display == 'hidden' ? '' : (this.caption.length ? this.caption : "Caption"); return { tag: 'figure', @@ -335,7 +335,7 @@ { tag: 'figcaption', - + 'data-display' : this.caption_display, style : { 'text-align': 'left', 'margin-top' : '16px', @@ -375,7 +375,7 @@ if (this.caption.trim().match(/^<i[^>]*>/i)) { this.caption = this.caption.trim().replace(/^<i[^>]*>/i, '').replace(/^<\/i>$/i, ''); } - this.caption_display = this.getVal(node, 'figcaption', 'style', 'display'); + this.caption_display = this.getVal(node, 'figcaption', 'data-display'); //this.text_align = this.getVal(node, 'figcaption', 'style','text-align'); this.width = this.getVal(node, 'figure', 'style', 'max-width'); //this.margin = this.getVal(node, 'figure', 'style', 'margin');