1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-08-28 17:39:57 +02:00

Save some remove_text calls if the text is zero length (#4193)

* Save some remove_text calls if the text is zero length.

* Remove unnecessary !text check - text is always string, and add similar check to 'insert_text' as well

* Create giant-adults-matter.md

Co-authored-by: Ian Storm Taylor <ian@ianstormtaylor.com>
This commit is contained in:
Bjørn Stabell
2021-04-13 08:14:30 -07:00
committed by GitHub
parent 2dad21d1d7
commit fd70dc0b2c
3 changed files with 13 additions and 3 deletions

View File

@@ -0,0 +1,5 @@
---
slate: patch
---
Fixed insert and remove text operations to no-op without any text.