function createEditableFieldWithListeners(followLinkInNewWindow) {
  const editableField = new FieldConstructor('testField');
  editableField.setFollowLinkInNewWindow(followLinkInNewWindow);

  const originalElement = editableField.getOriginalElement();
  editableField.setupFieldObject(originalElement);
  editableField.handleFieldLoad();

  return editableField;
}
@param {boolean} followLinkInNewWindow Whether activating a hyperlink in the
    editable field will open a new window or not.
@return {!Field} Returns an editable field after its load phase.