I am trying to highlight text which is inside of an iframe.
Outside of an iframe, it works perfectly:
$('p').highlight('text');
To highlight text within an iframe, I used the following code but it doesn't work:
$( 'iframe' ).contents().find('html').highlight('domain');
https://jsfiddle.net/1tvsj8ho/
On jsfiddle you may get an error (Blocked a frame with origin) but to me that's not important, since I am using a local file.