View Single Post
Old 03-11-2012, 02:22 PM   PM User | #3
vwphillips
Senior Coder

 
Join Date: Mar 2005
Location: Portsmouth UK
Posts: 4,354
Thanks: 3
Thanked 458 Times in 445 Posts
vwphillips is a jewel in the roughvwphillips is a jewel in the roughvwphillips is a jewel in the rough
Code:
<html>
<body>

<script src="../flovinax.js" type="text/javascript"></script>
<script>

function toggleEditor(edtN) {
	if(!toggleEditor[edtN]) {
		editInstance = new flovinaxa({fullPanel : true}).panelInstance(edtN);
        toggleEditor[edtN]=true
	}
    else {
		editInstance.removeInstance(edtN);
		toggleEditor[edtN]= false;
	}
}

</script>


<div>
	<textarea style="width: 800px; height: 200px;" id="myArea"></textarea>
	<br />
	<button onClick="toggleEditor('myArea');">+</button>
</div>
<div style="clear: both;"></div>


<div>
	<textarea style="width: 800px; height: 200px;" id="myArea2"></textarea>
	<br />
	<button onClick="toggleEditor('myArea2');">+</button>
</div>
<div style="clear: both;"></div>

</body>
</html>
__________________
Vic

God Loves You and will never love you less.

http://www.vicsjavascripts.org.uk/

If my post has been useful please donate to http://www.operationsmile.org.uk/
vwphillips is offline   Reply With Quote