Fixed and closed #492 : visual editor works also on Chrome.

This commit is contained in:
Matteo Tomasini 2010-03-30 12:24:40 +00:00
parent 725d30d082
commit fb90ca2400
3 changed files with 13 additions and 3 deletions

View file

@ -32,11 +32,11 @@
iframe.document.designMode='On';
} else {
iframe = document.getElementById('iframe').contentWindow;
iframe.focus();
iframe.document.designMode='On';
iframe.document.execCommand('styleWithCSS',false,false);
iframe.document.execCommand('backcolor', false, 'white');
try { // This seems to throw an exception in Firefox
iframe.focus();
iframe.document.execCommand('inserthtml', false, document.getElementById(VisualControl).value);
} catch(ex) { }
}