look at attached diagram.png file
LEGEND
EDITOR: differents kind of editors: bbcode editors, wysiwyg editors, html editors, textarea, ... they call image manager interface [eg: TINYMCE openWithSelfMain TINYMCE INTERFACE...]
IMAGE MANAGER ... interface script: any editor has its own interface; this interface php scripts get values from editors [eg: $_GET...] and send values to imagemanager, then, this interface php scripts get values from image manager and send to editors [eg: getElementById(target) = VALUE]... this scripts can use preload sistem to allow the choice of standard or custom image manager
IMAGE MANAGER: standard or custom image manager, one for all editors.
diagram