textoverlay
textoverlay copied to clipboard
Simple decorator for HTMLTextAreaElement
If applied on a textarea of CKEditor, it is not working.
I notice that you create a contenteditable div , but textarea is not updated, remain empty. There is a way to return only text without span or I need to...
Otherwise I need to have my colours in my JavaSript and styles.

I added the possibility to add a "klasses" option for a strategy: a space separated list of classes to be added on the matched string, alongside the background-color.
The overlay is placed wrong: 
I noticed that if my `textarea` has `font-size: 10pt` that this is converted to `font-size: 13px` on the `div.textoverlay`. My `textarea` also has a `line-height`, so I updated the `var...