this.image_src = this.getVal(node, 'img', 'src');
this.align = this.getVal(node, 'figure', 'align');
-
- /// not really used - as hidden captions do not store the content here..
- var figcaption = this.getVal(node, 'figcaption', false);
- if (figcaption !== '') {
- this.caption = this.getVal(figcaption, 'i', 'html');
- }
-
+ // data-display is stored in figure
this.caption_display = this.getVal(node, 'figure', 'data-display');
- Roo.log('CAPTION DISPLAY');
- Roo.log(this.caption_display);
+
+ // backward compatible
+ // it was stored in figcaption
if(this.caption_display == '') {
this.caption_display = this.getVal(node, 'figcaption', 'data-display');
- Roo.log(this.caption_display);
}
+ /// not really used - as hidden captions do not store the content here..
+ var figcaption = this.getVal(node, 'figcaption', false);
+ if (figcaption !== '') {
+ this.caption = this.getVal(figcaption, 'i', 'html');
+ }
+
+
var dc = this.getVal(node, true, 'data-caption');
if (this.caption_display == 'none' && figcaption != '' && dc && dc.length) {
this.caption = dc;