Styling Certain Text In Textarea
Is it possible to only style certain text in a
Solution 1:
No, it is not possible to style certain parts of text in a textarea
element. You have to use contentEditable. The answer you've cited is from 2009 - contentEditable is supported by all major browsers now.
You'll need to write the logic to determine when a link has been entered or provide a way in the UI to add a link and use execCommand
. But otherwise, the CSS is as simple as:
div[contenteditable="true"] a {
/* styles */
}
Post a Comment for "Styling Certain Text In Textarea"