From 5cc3665c474fdeeb46ebf17d3f68fcf63cf3bb7c Mon Sep 17 00:00:00 2001 From: josdejong Date: Wed, 13 May 2020 20:21:44 +0200 Subject: [PATCH] Implement functions `getPlainText` and `setPlainText` --- src/JSONNode.svelte | 26 ++-- src/styles.scss | 3 +- src/utils/domUtils.js | 224 ++++++++++++++++++++++++++-------- src/utils/domUtils.test.js | 21 ++++ src/utils/stringUtils.js | 93 -------------- src/utils/stringUtils.test.js | 24 +--- 6 files changed, 211 insertions(+), 180 deletions(-) create mode 100644 src/utils/domUtils.test.js diff --git a/src/JSONNode.svelte b/src/JSONNode.svelte index ec2d15d..c6a4426 100644 --- a/src/JSONNode.svelte +++ b/src/JSONNode.svelte @@ -1,14 +1,12 @@