Isolated example of Ajax.InPlaceEditor automatically forcing a textarea when line breaks are present in the text, even though the param "rows" is set to 1.

In firefox. In IE 8, 7 it displays a single line

Happens in Scriptaculous 1.8.3 (Prototype 1.7 & 1.6)

Created: May 25th, 2010.

Test:

In place editor 1
Text without line breaks
In place editor one 2
Has line breaks

Code:

		function test(){
			var alldivs = $$('.items .each_div');
			alldivs.each(function(eachdiv){
				new Ajax.InPlaceEditor(
					 eachdiv, 
					 'inplaceeditor.php?action=dump',
					{
						rows: 1,
						size : 20,
						okText: "save"
					}
				);
			});
		}