Index: _source/plugins/htmldataprocessor/plugin.js
===================================================================
--- _source/plugins/htmldataprocessor/plugin.js (revision 5206)
+++ _source/plugins/htmldataprocessor/plugin.js Thu Mar 11 17:55:06 CST 2010
@@ -41,7 +41,12 @@
function blockNeedsExtension( block )
{
var lastChild = lastNoneSpaceChild( block );
- return !lastChild || lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br';
+
+ return !lastChild
+ || lastChild.type == CKEDITOR.NODE_ELEMENT && lastChild.name == 'br'
+ // Some of the controls in form needs extension too,
+ // to move cursor at the end of the form. (#4791)
+ || block.name == 'form' && lastChild.name == 'input';
}
function extendBlockForDisplay( block )