Fixed and closed #492 : visual editor works also on Chrome.
This commit is contained in:
parent
725d30d082
commit
fb90ca2400
3 changed files with 13 additions and 3 deletions
|
@ -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) { }
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue