Internet Fanclub roteteufel.de

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Zeilenabstand im iFrame ändern

fck_lunae

Well-Known Member
Hallöchen!



Ich habe ein iFrame und der Zeilenabstand dort ist bei einem normalen Enter doppelt. Nur wenn ich Umschalt+Enter drücke erfolgt der einzeilige Zeilenabstand.



Das muss jedoch geändert werden.



Hat jemand einen Tipp?



Sieht aktuell so aus:



<html>

<head>

<title>WYSIWYG-Editor</title>

<script language="JavaScript">



function Init()

{

iView.document.designMode = 'On';

}



function boldIt()

{

iView.document.execCommand('bold', false, null);

iView.focus();

}



function copyIt()

{

iView.document.execCommand('copy', false, null);

iView.focus();

}



function cutIt()

{

iView.document.execCommand('cut', false, null);

iView.focus();

}



function pasteIt()

{

iView.document.execCommand('paste', false, null);

iView.focus();

}



function doImage()

{

var imgSrc = prompt('Bitte geben Sie den Dateipfad ein oder benutzen Sie den "Durchsuchen"-Button!', '')



if(imgSrc != null)

iView.document.execCommand('insertimage', false, imgSrc);

iView.focus();

}



function doLink()

{

iView.document.execCommand('createLink');

iView.focus();

}



function doBulList()

{

iView.document.execCommand('insertunorderedlist', false, null);

iView.focus();

}



function doLeft()

{

iView.document.execCommand('JustifyLeft', false, null);

iView.focus();

}



function doFull()

{

iView.document.execCommand('JustifyFull', false, null);

iView.focus();

}



</script>



<body onLoad="Init()">

<input type="image" onClick="boldIt()" src="file:///H|/Eigene Dateien/Editor/bold.gif">

<input type="image" onClick="doLeft()" src="file:///H|Eigene Dateien/Editor/left.gif">

<input type="image" onClick="doFull()" src="file:///H|/Eigene Dateien/Editor/full.gif">

<input type="image" onClick="doBulList()" src="file:///H|/Eigene Dateien/Editor/bullet.gif">

<input type="image" onClick="copyIt()" src="file:///H|/Eigene Dateien/Editor/copy.GIF">

<input type="image" onClick="cutIt()" src="file:///H|/Eigene Dateien/Editor/cut.GIF">

<input type="image" onClick="pasteIt()" src="file:///H|/Eigene Dateien/Editor/paste.GIF">

<input type="image" onClick="doImage()" src="file:///H|/Eigene Dateien/Editor/image.gif">

<input type="image" onClick="doLink()" src="file:///H|/Eigene Dateien/Editor/link.gif">

<form method="post" action="<%= basePath %>jsp/save.jsp"><input type="image" src="file:///H|/Eigene Dateien/Editor/save.GIF"></form>

<form method="back" action="<%= basePath %>jsp/back.jsp"><input type="image" onClick="close()" src="file:///H|/Eigene Dateien/Editor/close.GIF"></form>

<br>



<iframe id="iView" style="width: 668px; height:200px"></iframe>



</body>

</html>
 
Hallöchen!


Ich habe ein iFrame[...]
Oh je, das ist doch hoffentlich nicht ansteckend? Gute Besserung auf alle Fälle!



default_icon_mrgreen.gif
 
Zurück
Oben