
April 17th, 2003, 11:20 AM
|
|
Junior Member
|
|
Join Date: Mar 2003
Posts: 18
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
WYSIWYG --- Lets settle this, it has to be possible
Ok, the major question that seems to be going around about the WYSIWYG editor is how the heck you stop the thing from creating paragraph spaces instead of <br>'s. Now, I'm thinking that the OnKeyPress in conjuction with this commamnd:
iHTML = iView.document.body.innerHTML;
iHTML += "<br>";
iView.document.body.innerHTML = iHTML;
But I don't think you can apply the OnKeyPress command to and Iframe (at least thats what Microsoft says.....but then again they say alot of things). Someone else can try applying this to the IFrame and be the saviour of all who have this question. Assuming that doesn't work.....do any of you think it would be possible to give the Iframe a source and in the source have an on key press command that is connected to the body. I've tried this but I am a Jscript idiot so just assume that I coded it wrong....
For the love of god don't give up.....we can overcome......
[sorry, I'm hungry......I'm going to go get a hamburger]
|