DokuWiki

It's better when it's simple

User Tools

Site Tools


plugin:draw

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
plugin:draw [2009-11-26 07:19] 67.182.174.24plugin:draw [2022-01-29 19:55] (current) – Obsolete, Java is not anymore Klap-in
Line 10: Line 10:
 depends    :  depends    : 
 conflicts  conflicts 
-similar    :  +similar    : svgedit 
-tags       : media, images, diagram, java, !discontinued+tags       : !obsolete, media, images, diagram, java, !discontinued 
 ---- ----
 +
 +Java applets such as used in this plugin are not supported in recent browsers anymore.
  
 Draw and Edit diagrams using a Java Applet. This plugin is an adaption of the [[http://twiki.org/cgi-bin/view/Plugins/TWikiDrawPlugin|TWikiDraw]] facility of the [[http://moinmoin.wikiwikiweb.de/|MoinMoin-Wiki]]. Draw and Edit diagrams using a Java Applet. This plugin is an adaption of the [[http://twiki.org/cgi-bin/view/Plugins/TWikiDrawPlugin|TWikiDraw]] facility of the [[http://moinmoin.wikiwikiweb.de/|MoinMoin-Wiki]].
Line 23: Line 26:
  
 //Julian Rüth 2008-04-14// //Julian Rüth 2008-04-14//
 +
 +> [[plugin:svgedit]] plugin is finally done! it can easily replace draw, but it needs a modern browser.
  
 ===== Syntax ====== ===== Syntax ======
  
-Dokuwiki Syntax:+DokuWiki Syntax:
  
 <code> <code>
Line 250: Line 255:
   * I have a problem. When I add a text box and it contains a new line the .draw file won't load. When I look in the .draw file I see that the string has a ^M before the \n. If I remove the ^M it loads. --- //Fredrik Espinoza 11/23/2995 17:45//   * I have a problem. When I add a text box and it contains a new line the .draw file won't load. When I look in the .draw file I see that the string has a ^M before the \n. If I remove the ^M it loads. --- //Fredrik Espinoza 11/23/2995 17:45//
  
-  * It's working for me ! That's really great !! I was waiting for that tool for several years ... THANKS A LOT. //Cyrille 2006-09-10//+  * It's working for me! That's really great! I was waiting for that tool for several years... THANKS A LOT. //Cyrille 2006-09-10//
  
 Using Firefox, when I add a multiple line label to a drawing, there is a new line character inserted after the '\n'. This produces a syntax error when the image is reloaded. Editing the file to remove the new line fixes that syntax error. Does anyone know how to modify the JavaScript to eliminate the newline? //Bob McConnell 2006-09-20// Using Firefox, when I add a multiple line label to a drawing, there is a new line character inserted after the '\n'. This produces a syntax error when the image is reloaded. Editing the file to remove the new line fixes that syntax error. Does anyone know how to modify the JavaScript to eliminate the newline? //Bob McConnell 2006-09-20//
Line 265: Line 270:
  
  
-Thank-you, that makes a lot of sense. What a fantastic tool. It is exactly what needed.  //georgie 2006-12-29//+Thank-you, that makes a lot of sense. What a fantastic tool. It is exactly what needed.  //georgie 2006-12-29//
  
  
Line 295: Line 300:
 ---- ----
  
-Hello, and thanks for that nice and usefull tool !\\+Hello, and thanks for that nice and usefull tool!\\
 When I put some 'URL' on the draw, the file mydraw.map is well filled, but the HTML map still empty (and I didn't put width & height in the draw tag).\\ When I put some 'URL' on the draw, the file mydraw.map is well filled, but the HTML map still empty (and I didn't put width & height in the draw tag).\\
  //Cyrille37 2007-03-30//  //Cyrille37 2007-03-30//
Line 445: Line 450:
   $conf['baseurl'].$conf['basedir']   $conf['baseurl'].$conf['basedir']
  
-This allows the java app to launch and the GUI displayed. However, then there was the problem with the files not being saved - rendering the plugin practically useles.+This allows the java app to launch and the GUI displayed. However, then there was the problem with the files not being saved - rendering the plugin practically useless.
  
 I did some further investigations and it looks like it has something to do with CSRF within DokuWiki and mediamanager: I did some further investigations and it looks like it has something to do with CSRF within DokuWiki and mediamanager:
  
-[[http://www.dokuwiki.org/wiki:plugins:programming_tips?s[]=formsecuritytoken]]+[[devel:plugin_programming_tips#Making your plugins more secure]]
  
 Looks like media manager uses the checkSecurityToken() function. Thus, that is why uploading the file fails. Looks like media manager uses the checkSecurityToken() function. Thus, that is why uploading the file fails.
Line 465: Line 470:
  
 ==== New Modified Draw Plugin ==== ==== New Modified Draw Plugin ====
-I'm using version 2008-05-05 of DokuWiki and had a hard time to get this plugin running. I used some hints from the comments here, hunted some bugs by myself and added some new funtions. I think the result can be very useful for others trying to run this nice plugin on newer DokuWikis.+I'm using version 2008-05-05 of DokuWiki and had a hard time to get this plugin running. I used some hints from the comments here, hunted some bugs by myself and added some new functions. I think the result can be very useful for others trying to run this nice plugin on newer DokuWikis.
  
 === Changes === === Changes ===
Line 471: Line 476:
   * fixed absent security token   * fixed absent security token
   * fixed multiline label bug (resulted in broken .draw-files)   * fixed multiline label bug (resulted in broken .draw-files)
-  * replaced (almost empty) popup window with an auto-hiding iframe+  * replaced (almost empty) pop-up window with an auto-hiding iframe
   * image reloads automatically after editor frame is closed (no page reloads are needed anymore)   * image reloads automatically after editor frame is closed (no page reloads are needed anymore)
   * editor frame will be centered and/or maximized when started   * editor frame will be centered and/or maximized when started
Line 626: Line 631:
 --- // [[M.Kolodziejski@net.icm.edu.pl|Michal Kolodziejski]] 2008-07-25 // --- // [[M.Kolodziejski@net.icm.edu.pl|Michal Kolodziejski]] 2008-07-25 //
  
-Are you sure this is a real bug? Like [[http://www.dokuwiki.org/wiki:plugins:programming_tips?s[]=formsecuritytoken]] says the security token is an extra prevention against cross-site-request-forgery attacks only and neither for authentification nor authorization of the uploader itself. So this token alone should be pretty useless and within a user session there is no difference at all.+Are you sure this is a real bug? Like [[devel:plugin_programming_tips#Making your plugins more secure]] says the security token is an extra prevention against cross-site-request-forgery attacks only and neither for authentification nor authorization of the uploader itself. So this token alone should be pretty useless and within a user session there is no difference at all.
  
 A look on the source file ''inc/common.php'' [lines 55-78] A look on the source file ''inc/common.php'' [lines 55-78]
Line 670: Line 675:
 --- // [[M.Kolodziejski@net.icm.edu.pl|Michal Kolodziejski]] 2008-07-28 // --- // [[M.Kolodziejski@net.icm.edu.pl|Michal Kolodziejski]] 2008-07-28 //
  
-I just installed the [[http://stegi.net/dokuwiki/draw.zip]] on version dokuwiki-2009-02-14.  It seems to work except for saving the final drawing.  In the media folder it is putting all the correct files: hello.png, hello.map, and hello.draw, but the png is the default and is not replaced by a final drawing.  --- // David Matson 2009-011-25 // +I just installed the [[http://stegi.net/dokuwiki/draw.zip]] on version DokuWiki-2009-02-14.  It seems to work except for saving the final drawing.  I put <draw name=hello> on my page.  Then saved the page.  The default PNG image shows with an edit link next to it.  In the media folder it is putting all the correct files: hello.png, hello.map, and hello.draw, but the PNG default is not replaced by a final drawing after saving.  I changed the name of this default file to see if that was the file showing up on my page, and after changing the name the word [diagram] showed up instead of the image. So the only problem is the saving. --- // David Matson 2009-011-25 //
plugin/draw.1259216385.txt.gz · Last modified: 2009-11-26 07:19 by 67.182.174.24

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki