I don't know what can be done with that example. It is essentially what tiddlywiki does now. The state has to be saved somewhere and tiddlywiki works with lists, so it uses lists for keeping track of drag and drop movements.
If you want to re-order the content of tiddlers by dragging and dropping them than that is possible to make happen, but the most tiddlywiki-like way to do that is to make a tiddler for each component you want to move around and then have the drag and drop part modify the order of that list, which as far as I understand it is what the drag and drop widget does. To tiddlify that code you would say that each div is a tiddler and when you drag from one tiddler into another you move all of the content from one to the other, which I don't think is what you want because it is pretty much just renaming a tiddler. To use the natural ordering of things in a tiddler than you have to first define what those things are, otherwise how do you determine what gets picked up? You have to define that somehow and then as soon as you define it you need to have a listing of the 'things' to be picked up somewhere. Which is why you end up with a list. You could create some special type of list that makes each item on the list a draggable div similar to how markdown makes interactive checkboxes, but my instinct is that it would do strange things with transclusions that may break a lot of stuff. I am having a hard time coming up with a way to use this that would simplify using it in tiddlywiki, the reason that it is so simple in the example code is that it is all done in the dom because there is no persistent state, which isn't possible in tiddlywiki (it would lead to problems like when you have an edit-text widget edit the same tiddler it is in). -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/1b001c8c-5950-4fce-82c0-6e7d9f88b979%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

