From 7a5711f2d5fe4195c0b8df66ce6c0b12ca80c444 Mon Sep 17 00:00:00 2001 From: jinphic <78671853+jinphic@users.noreply.github.com> Date: Wed, 23 Aug 2023 09:56:18 +0000 Subject: [PATCH] fix: remove extra blank end line --- src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index f83a11db..1247a5e5 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -530,7 +530,7 @@ class ReactQuill extends React.Component { this.lastDeltaChangeSet = delta; this.value = nextContents; - this.props.onChange?.(value, delta, source, editor); + this.props.onChange?.(value?.replace(/(^([ ]*


<\/p>)*)|((


<\/p>)*[ ]*$)/gi, '').trim(), delta, source, editor); } }