fix #25056, add more test for text editing