Hi there. I wrote the drawing plugin - I can see the need for a
completely offline solution and hopefully I can help. BTW if I do
further work on the plugin, I would like to do something similar to
this, where it stores the SVG (and also VML) in the tiddler, so
drawings can be viewed (but not edited) without having to make any
call to Project Draw.

Right now, I don't fully understand your problem. If you have the full
SVG code in the popup, why can't you just copy it to the tiddler text
(or a custom field) and save the tiddler?

On Mar 13, 11:14 am, JRutherford <sc0...@leeds.ac.uk> wrote:
> I have developed a very basic drawing tool using SVG which allows
> users to generate freehand drawn images and integrated this into a
> TiddlyWiki using a similar but much less complex plugin to that used
> for integrating project draw into TiddlyWiki which can be found 
> herehttp://softwareas.com/tiddlywiki-drawing-plugin-based-on-project-draw.
> The reason that I can not just simply use this tool is that I am
> attempting to generate a tool that does not require the use of an
> Internet connection or external image files.
>
> On clicking where the macro is called, the drawing tool (which is
> stored as an external svg file) is displayed in a popup window, the
> user creates the image which is generated using JavaScipt to
> manipulate the SVG DOM and on returning to the TiddlyWiki page
> clicking done on the generated Tiddler appears to embed all of the SVG
> code needed for the image into the Tiddler i.e. the image appears in
> the Tiddler. The current problem that I am having is that when the
> popup window i.e. the drawing application is closed the image is lost.
> This is because the variables used to store the SVG no longer exist as
> well as now referencing a window that doesn't exist either.
>
> I have explored for many hours the various current attempts at a
> similar functionality including asciencepad, WYSIWYG editors, and even
> have a method that generates the code necessary to store the image as
> ASCIIsvg instead but I am still failing to see a way getting the code
> from the popup into the actual tiddler. When the window is open the
> image appears to become embedded in the tiddler but in the TIddlyWiki
> html file there is nothing actually within the <pre></pre> tags.
>
> Does anyone have any suggestions on how I could this?
>
> Apologies if the answer is glaringly obvious but I just fail to see it
> at the moment. If you need any clarification on what I am attempting
> to do in order to help just let me know.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"TiddlyWikiDev" group.
To post to this group, send email to TiddlyWikiDev@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywikidev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/TiddlyWikiDev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to