Skowron ten przykład jest dla Internet Explororera przeczytałem cały artykuł i wykonałem proste wysiwyg na jego podstawie
z tego kodu wynikalo by ze rzeczywiscie obrazek wstawia sie do textarea

(oczywiscie tak nie jest i calosc "obrabia" zapewne silnik przeglądarki

zmieniłem tok myślenia i widzę że do textarea dodawany jest sam znacznik z którym skojarzony jest obraz który widzimy

jednak interesowało by mnie coś takiego jak ten artykuł tylko dla mozilli Firefox

(jak ktoś ma coś takiego w zakładkach to bardzo proszę o rucenie linka

)
jednak jak kogoś interesuje temat dla IE to poniżej zamieszczam kod WYSIWYG dla IE
<html>
<head>
<title> Using execCommand to bold text </title>
<script type="text/css">
.butClass
{
border: 1px solid;
border-color: #D6D3CE;
}
</script>
<script language="JavaScript">
function Init()
{
iView.document.designMode = 'On'; // włączamy tryb edycji designMode
}
function boldIt()
{
iView.document.execCommand('bold', false, null); // jest to funkcja pogrubienia zaznaczonego obszaru
}
function doForeCol()
{
var fCol = prompt('Enter foreground color', '');
if(fCol != null)
iView.document.execCommand('forecolor', false, fCol);
}
function selOn(ctrl)
{
ctrl.style.borderColor = '#000000';
ctrl.style.backgroundColor = '#B5BED6';
ctrl.style.cursor = 'hand';
}
function doBold()
{
iView.document.execCommand('bold', false, null);
}
function doCenter()
{
iView.document.execCommand('justifycenter', false, null);
}
function doBulList()
{
iView.document.execCommand('insertunorderedlist', false, null);
}
function doLink()
{
iView.document.execCommand('createlink');
}
function doImage()
{
var imgSrc = prompt('Enter image location', '');
if(imgSrc != null)
iView.document.execCommand('insertimage', false, imgSrc);
}
function doRule()
{
iView.document.execCommand('inserthorizontalrule', false, null);
}
function doFont(fname)
{
if (fname!='')
iView.document.execCommand ("fontname", false, fname);
}
</script>
<body onLoad="Init()"> <!-- wywolujemy funkcje Init poleceniem onLoad (przy wczytaniu strony uruchamia sie funkcja -->
<iframe id="iView" style="width: 600px; height:370px"></iframe> <!-- iframe funkcja init wlącza designMode tryb edycji -->
<br><br>
<input type="button" onClick="boldIt()" value="Toggle Bold"> <!-- przycisk ktory jest uruchamiany wywoluje fukcje boldIt() -->
<input type="button" onClick="doForeCol()" value="kolor tekstu">
<img alt="Bold" class="butClass" src="bold.gif" onMouseOver="selOn(this)" onMouseOut="selOff(this)" onMouseDown="selDown(this)" onMouseUp="selUp(this)" onClick="doBold()">
Read more at <a href="http://www.devarticles.com/c/a/HTML/Building-a-WYSIWYG-HTML-Editor-Part-1/3/#KkT3M3pCHeCqfOkR.99" target="_blank">http://www.devarticles.com/c/a/HTML/Buildi...M3pCHeCqfOkR.99</a>
<input type="button" onClick="doLink()" value="twórz hiperłącze"></input>
<input type="button" onClick="doImage()" value="wstaw zdjecie"></input>
<input type="button" onClick="doRule()" value="wstaw linie"></input>
<select name="selFont" onChange="doFont(this.options[this.selectedIndex].value)">
<option value="1" >1</option>
<option value="2" >2</option>
<option value="3" >3</option>
<option value="4" >4</option>
<option value="5" >5</option>
</select>
</body>
</html>