king
2025-02-14 f128d679cacda2a6b5b730ad0368b5fe73f887f7
src/tabviews/custom/components/editor/braft-editor/index.jsx
@@ -63,6 +63,17 @@
      } else {
        _data = [_data]
      }
    } else if (_config.html) {
      if (/\$blank_space_\d+\$/ig.test(_config.html)) {
        _config.html = _config.html.replace(/\$blank_space_\d+\$/ig, (w) => {
          let n = +w.replace(/blank_space_|\$/ig, '')
          if (n) {
            return new Array(n).fill(' ').join('')
          }
          return w
        })
      }
    }
    if (_config.wrap.minHeight) {
@@ -261,6 +272,17 @@
            item.$html = item.$html.replace(reg, item[key])
          })
        }
        if (/\$blank_space_\d+\$/ig.test(item.$html)) {
          item.$html = item.$html.replace(/\$blank_space_\d+\$/ig, (w) => {
            let n = +w.replace(/blank_space_|\$/ig, '')
            if (n) {
              return new Array(n).fill(' ').join('')
            }
            return w
          })
        }
      }
    })