Explorar el Código

多媒体图片展示改为全部缩略图

ting.yin hace 5 años
padre
commit
cb9e171137
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      stmms-web/src/main/webapp/static/rich-text/js/render.js

+ 2 - 2
stmms-web/src/main/webapp/static/rich-text/js/render.js

@@ -11,10 +11,10 @@ function renderRichText(body) {
 
 function renderSection(section) {
     let blocks = section.blocks || [];
-    let inline = blocks.length > 1;
+//    let inline = blocks.length > 1;
     let node = document.createElement('p');
     blocks.forEach(block => {
-        node.appendChild(renderBlock(block, inline));
+        node.appendChild(renderBlock(block, true));
     });
     return node;
 }