jquery - Highlight a word in an editable div when is written -


i have jquery highlight plugin: https://github.com/jbr/jquery.highlightregex

i want make text editor online, , when types: if or else want auto colored, want mention using editable div, full screen.

it works when type word in plugin. write after, have effect. want word.

<div contenteditable="true" id="full"></div>   .highlight {     color: red; }  $("div").on("keyup", function(){      $('#full').highlightregex(/[aeiou]/ig); }); 

here html, css , js. + plugin.


Comments

Popular posts from this blog

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

html - How to style widget with post count different than without post count -

url rewriting - How to redirect a http POST with urlrewritefilter -