Unfortunately I did not find a similar function but I had to preformat the data and then also use the setData event to format the data after create or edit
No there isn't. Pre-formatting the data, and the post-formatting it, if you need to deformat it, is the way to do it. The reason there isn't a formatter is that it could get quite complex if you need both setter and getter formatters - so Editor always just works with the raw data.
If formatters are required, then a custom plug-in field type could be used that provides its own formatters in the set and get functions.
Answers
Unfortunately I did not find a similar function but I had to preformat the data and then also use the setData event to format the data after create or edit
Hi,
No there isn't. Pre-formatting the data, and the post-formatting it, if you need to deformat it, is the way to do it. The reason there isn't a formatter is that it could get quite complex if you need both setter and getter formatters - so Editor always just works with the raw data.
If formatters are required, then a custom plug-in field type could be used that provides its own formatters in the
set
andget
functions.Allan