I think the answer is that what you're looking at is typically NOT an actual <textarea>
. It's a <div>
or <span>
made to look like a text area. A regular HTML textarea doesn't have individual formatting of the text.
"Rich-Text editors" will have controls that modify the contents of the span/div with regular html markup (<strong>
, <em>
, etc.) to emulate a full-blown rich text editor
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…