diff --git a/index.html b/index.html index 0ba7857e..ffed24e8 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -
${text}
` } diff --git a/simple-mind-map/src/plugins/RichText.js b/simple-mind-map/src/plugins/RichText.js index ab5eca67..47cc9ecd 100644 --- a/simple-mind-map/src/plugins/RichText.js +++ b/simple-mind-map/src/plugins/RichText.js @@ -219,7 +219,7 @@ class RichText { underline: node.style.merge('textDecoration') === 'underline', strike: node.style.merge('textDecoration') === 'line-through' } - this.formatAllText(style) + this.pureFormatAllText(style) } // 获取当前正在编辑的内容 @@ -325,7 +325,7 @@ class RichText { // 中文输入结束 onCompositionEnd() { - if (!this.showTextEdit) { + if (!this.showTextEdit || !this.lostStyle) { return } this.isCompositing = false @@ -372,6 +372,11 @@ class RichText { // 格式化所有文本 formatAllText(config = {}) { this.syncFormatToNodeConfig(config) + this.pureFormatAllText(config) + } + + // 纯粹的格式化所有文本 + pureFormatAllText(config = {}) { this.quill.formatText(0, this.quill.getLength(), config) } diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 714becd0..b2ec82a8 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,9 @@ # Changelog +## 0.6.2 + +Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode. + ## 0.6.1 Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index ce71b82a..f75ec873 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,8 @@Fix: 1.Fixed the problem that the new node does not change with the theme in rich Text mode.
Fix: 1.Fixed the issue of high movement sensitivity when using the touchpad when changing mouse scrolling to moving the canvas behavior.
Whether the node is currently being dragged
++v0.6.2+
+
Gets whether a custom style has been set.
Update the width and height of the node by recreating the node content, and return a Boolean value indicating whether the width and height have changed
修复:1.修复富文本模式下,新建节点不随主题变化而变化的问题。
修复:1.修复将鼠标滚动改为移动画布行为后,使用触控板操作时移动灵敏度过高的问题。
节点是否正在拖拽中
++v0.6.2+
+
获取是否设置了自定义样式。
通过重新创建节点内容更新节点的宽高,返回一个布尔值,代表是否宽高发生了变化