Executing Javascript on RichTextArea repaint or data change

Hi,

I need to call this javascript function:

var iFrameBody = $(‘.gwt-RichTextArea’).contentDocument;
var h = iFrameBody.getElementsByTagName(‘head’).item(0);
var s = document.createElement(‘style’);
s.type = ‘text/css’;
s.appendChild(document.createTextNode(‘*{font-family:Arial !important;}’));
h.appendChild(s);

when somebody pastes data from MS Word to RichTextArea component.

I`ve tried this one:

	pageDataVerticalLayout.addListener(new RepaintRequestListener() {
		
		@Override
		public void repaintRequested(RepaintRequestEvent event) {
			String jsHack = "var iFrameBody = $('.gwt-RichTextArea').contentDocument; "+   						
					"var h = iFrameBody.getElementsByTagName('head').item(0); "+
					"var s = document.createElement('style'); "+
					"s.type = 'text/css';" +
					"s.appendChild(document.createTextNode('*{font-family:Arial !important;}'));"+
					"h.appendChild(s);";
			getWindow().executeJavaScript(jsHack);
			getWindow().executeJavaScript("alert('hahaha')");				
		}
	});
}

When layout repaints RichTextArea, simply to insert overriding css in head tag inside iframe of RichTextArea component.

It`s not working.

When im trying to run this JS in firebug, its functioning.
Can somebody give me a hint.
Thanks.