Fix page jumping issue with new wysiwyg form widget

From #4939.