Hi - I think it would be great to integrate the fantastic java based yEd tool with Dokuwiki to allow in place editing of diagrams with a button to insert the code into the page. I know there is JDraw bt it does not work on OSX and has no proxy support.
This is yEd:
http://www.yworks.com/en/products_yed_about.html