Running a problem with HTML editor

xiaoxiao2021-03-06  23

In the HTML editor, it is generally

, which is generally the default. segment.

I have always asked me this question, and I didn't write code testing, I think that Event.KeyCode == 13 in OnkeyDown can be judged and resolved, and later discovering that no one can solve the success in this way. Apologize this! To this end, take a closer study, find that there are two ways to work, but it is not very perfect, but it has been basically met:

1. When initializing the contents of the editor, plus "

"

When you enter the car, the editor will directly generate "

" without generating

, you can just put it down without changing the section, as shown below: