Running a problem with HTML editor

zhaozj2021-02-16  50

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, add "

", the editor will directly generate "
" without generating

, You can just put it down without changing the section, as shown below: [CODE]