Adding a new field type to Dexterity

Is there some documentation about adding a new field type to Dexterity?
In my case I want to add an "XML" field type that is rendered as textarea and decorated with the ACEditor?
I am not asking about writing an "XML field" behavior.

-aj

Answering this myself: the factories are registered in plone.schemaeditor.fields.py

-aj