projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5d82d30
)
fix #7771 - correct fix for image captions
author
Alan
<alan@roojs.com>
Wed, 16 Aug 2023 05:49:54 +0000
(13:49 +0800)
committer
Alan
<alan@roojs.com>
Wed, 16 Aug 2023 05:49:54 +0000
(13:49 +0800)
Roo/htmleditor/BlockFigure.js
patch
|
blob
|
history
diff --git
a/Roo/htmleditor/BlockFigure.js
b/Roo/htmleditor/BlockFigure.js
index
9fac188
..
60e83f7
100644
(file)
--- a/
Roo/htmleditor/BlockFigure.js
+++ b/
Roo/htmleditor/BlockFigure.js
@@
-406,7
+406,7
@@
Roo.extend(Roo.htmleditor.BlockFigure, Roo.htmleditor.Block, {
this.caption_display = this.getVal(node, 'figcaption', 'data-display');
var dc = this.getVal(node, true, 'data-caption');
- if (dc && dc.length) {
+ if (
this.caption_display == 'none' && figcaption != '' &&
dc && dc.length) {
this.caption = dc;
}
//this.text_align = this.getVal(node, 'figcaption', 'style','text-align');