
June 29th, 2005, 02:56 AM
|
|
Registered User
|
|
Join Date: Jun 2005
Posts: 1
Time spent in forums: 8 m 55 sec
Reputation Power: 0
|
|
WYSIWYG editor - setting a default font
Hi Peeps,
I am following Mitchell Harper's article on building a WYSIWYG editor. I am trying to set the default font in the editor but am just getting errors.
My latest attempt was to alter to Init function to the following code as per this thread:
Code:
function Init() {
iView.document.designMode = 'On';
iView.document.body.style.fontFamily = 'Courier';
iView.document.body.style.fontSize = '10pt';
iText = iView.document.body.innerText;
iView.document.body.innerHTML = iText;
}
Can someone please help.
|