king
2025-02-07 726ef579edf490469398a977fb621e70bd0c816d
2025-02-07
2个文件已修改
14 ■■■■ 已修改文件
src/menu/components/editor/braft-editor/index.jsx 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/tabviews/custom/components/editor/braft-editor/index.jsx 12 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/menu/components/editor/braft-editor/index.jsx
@@ -212,7 +212,7 @@
        } trigger="hover">
          <ToolOutlined />
        </Popover>
        <BraftContent value={card.wrap.datatype !== 'static' ? '<p class="empty-content"><span>富文本<span>字符替换:空格(blank_space_**),其中**代表空格数。 </span></span></p>' : card.html}/>
        <BraftContent value={card.wrap.datatype !== 'static' ? '<p class="empty-content"><span>富文本<span>字符替换:$blank_space_**$(空格,其中**代表空格数)。 </span></span></p>' : card.html}/>
        <div className="component-name">
          <div className="center">
            <div className="title">{card.name}</div>
src/tabviews/custom/components/editor/braft-editor/index.jsx
@@ -64,9 +64,9 @@
        _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 (/\$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('&nbsp;').join('')
          }
@@ -273,9 +273,9 @@
          })
        }
        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 (/\$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('&nbsp;').join('')
            }