X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fhtmldataprocessor%2Fplugin.js;fp=_source%2Fplugins%2Fhtmldataprocessor%2Fplugin.js;h=264f5044265fef2ae8cddfe6e18dfe6e6d0dc3a3;hb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;hp=b449355807b610a86bfb99f059cadbe95b04efaf;hpb=059b4c2fef02528bf1af189f7996e80652faddfb;p=ckeditor.git diff --git a/_source/plugins/htmldataprocessor/plugin.js b/_source/plugins/htmldataprocessor/plugin.js index b449355..264f504 100644 --- a/_source/plugins/htmldataprocessor/plugin.js +++ b/_source/plugins/htmldataprocessor/plugin.js @@ -41,7 +41,12 @@ For licensing, see LICENSE.html or http://ckeditor.com/license 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 )