From 00390a1349019aa2284915c183c1a83f29f82229 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 25 Jun 2025 20:25:03 +0200 Subject: [PATCH] :bug: Add correct is-text-node? predicate to text processing methods --- common/src/app/common/text.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/text.cljc b/common/src/app/common/text.cljc index 84cc27b218..9e635f6a03 100644 --- a/common/src/app/common/text.cljc +++ b/common/src/app/common/text.cljc @@ -130,8 +130,8 @@ (defn is-text-node? [node] - (and (string? (:text node)) - (not= (:text node) ""))) + (and (nil? (:type node)) + (string? (:text node)))) (defn is-paragraph-set-node? [node]