I'm using jQuery Text Editor, but I couldn't find a way to change the selected text background. Does anyone know how to do it?
Asked
Active
Viewed 683 times
-1
-
1Show us what you have and explain what you have tried, or you won't get any help. – Reinstate Monica Cellio Aug 22 '14 at 11:24
-
exist billion solutions in web, just use search. Take this http://jsfiddle.net/f9k10633/ – Igor Semin Aug 22 '14 at 11:27
-
Sorry guy for the late reply...I didn't explain correctly what I want. I want to highlight a text, with jqte there's a button to change the text color, I need another button to highlight the text. – adolfotcar Aug 28 '14 at 10:09
2 Answers
0
::selection {
background: #ffb7b7;
}
First google example: http://css-tricks.com/overriding-the-default-text-selection-color-with-css/

DrColossos
- 12,656
- 3
- 46
- 67
0
the other answers seem to be about what color shows up as you highlight text.
jqte doesn't seem to actually have a simple way to change highlighting/the text background! The best bet I've found is using source/html view and manually adding:
<span style="background-color: yellow;">highlighted text</span>

tuffylock
- 1
- 2