|
@@ -175,8 +175,14 @@ public class RichTextConverter implements TagConstant {
|
|
|
}
|
|
|
|
|
|
Param param = new Param();
|
|
|
- param.setWidth(extractNumber(width));
|
|
|
- param.setHeight(extractNumber(height));
|
|
|
+ String w = extractNumber(width);
|
|
|
+ String h = extractNumber(height);
|
|
|
+ if (StringUtils.isNotEmpty(w)) {
|
|
|
+ param.setWidth(w);
|
|
|
+ }
|
|
|
+ if (StringUtils.isNotEmpty(h)) {
|
|
|
+ param.setHeight(h);
|
|
|
+ }
|
|
|
|
|
|
Block block = new Block();
|
|
|
block.setType(BlockType.image);
|