Add support for inline fields

For inline fields to have an editor the initialization code must be called when "Add" is clicked, not only on page load.