From 726ef579edf490469398a977fb621e70bd0c816d Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期五, 07 二月 2025 23:59:57 +0800 Subject: [PATCH] 2025-02-07 --- src/tabviews/custom/components/editor/braft-editor/index.jsx | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/tabviews/custom/components/editor/braft-editor/index.jsx b/src/tabviews/custom/components/editor/braft-editor/index.jsx index 4f70285..eff5b65 100644 --- a/src/tabviews/custom/components/editor/braft-editor/index.jsx +++ b/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(' ').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(' ').join('') } -- Gitblit v1.8.0