[英]colorize text in textarea with jQuery
我需要在textarea中着色部分文本。 讓我們說第一行為紅色,第二行為藍色。 這該怎么做? (jQuery的)
我不確定是否可以使用textarea。 而是使用div contentEditable 。
看到類似的問題
在textarea中渲染HTML
如何為HTML textarea元素的某些內部文本設置背景顏色?
您無法輕松設置文本區域的內容樣式,但您可以使用簡化的富文本編輯器來完成此操作。
像RTE這樣的東西: http ://batiste.dosimple.ch/blog/posts/2007-09-11-1/rich-text-editor-jquery.html或者CLEditor: http ://premiumsoftware.net/cleditor/這是一個很好的起點。
[英]jQuery get textarea text
[英]loading text in to textarea jquery
[英]Edit text Textarea Jquery
[英]Default text on textarea jQuery?
[英]jQuery - find text in textarea
[英]capturing the text value of a textarea with jQuery
[英]JQuery/Firefox bug with textarea and .text?
[英]Select all text in textarea jquery
[英]input:text + textarea selector in jquery
[英]jQuery Interpret text in textarea as selectors
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.