jQuery Text Editor Font Background

715 Views Asked by At

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?

2

There are 2 best solutions below

0
On
::selection {
  background: #ffb7b7;
}

First google example: http://css-tricks.com/overriding-the-default-text-selection-color-with-css/

0
On

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>