A good place to start would be with this http://ez.no/developer/ez_publish_3/documentation/development/extensions it contains alot of what you need to know. Also if you purchased it take a look at the Online editor, its an exntension and you can learn alot from how its formed.
Tony
Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development