Replacing WYSIWYG in v4

Were you able to make this approach work? I added the field and then in schema.json place the

{
  ...
  "attributes": {
    ...
    "fieldName": {
      "type": "customType"
    }
    ...
  }
}

In UI it seems to work but later after save data is not being record in db and just getting null.