Notestorm & TidIDE Editor : Integration problem

14 views
Skip to first unread message

Shankar

unread,
Oct 10, 2009, 12:02:50 PM10/10/09
to TiddlyWiki
I reported this issue earlier. Here is the recap:

I am trying to use TidIDE Editor with the Notestorm - most likely not
doing it right. Here is how my edit template looks like when it
almost works:

<div>
<span class='title' macro='view title' style='margin-right: 1.0em;' ></
span>

<span class='subtitle'>
<span macro='message views.wikified.createdPrompt' style='margin-left:
0.2em'></span>
<span macro='view created date MM-DD-YYYY'> </span>
</span>

<span class='toolbar' macro='toolbar +closeOthers' style='margin-left:
1.0em;'></span>
<span class='toolbar' macro='toolbar cancelTiddler' style='margin-
left: 1.0em;'></span>
</div>
<div class='editor' macro='edit title'></div>
<div class='SlTidIDEStyles' macro='tidIDE +edit:here'></div>

The issue with this is, the line <div class='editor' macro='edit
title'></div> creates a redundant title editor that is already
integrated into the TidIDE. If we remove that line, Notestorm no
longer knows that the tiddler is being edited, and when I switch to
another tab, the editor in the first tab is silently closed behind my
back!

In addition, currently as it is, when I am done editing, the Notestorm
does not realize that I have saved the tiddler, but knows that the
tiddler has been opened for edit. So it asks a redundant question of
whether I want to " ... abandon your changes to the 'xxx'?".

I have a gut feeling that I am not doing something right here. If
you have some suggestions, I would appreciate it.

Thanks!

Cheers; 'best,

shankar swamy

Shankar

unread,
Oct 19, 2009, 4:27:52 PM10/19/09
to TiddlyWiki


On Oct 10, 9:02 am, Shankar <shankar.sw...@gmail.com> wrote:
> I reported this issue earlier.  Here is the recap:
>
> I am trying to use TidIDE Editor with the Notestorm - most likely not
> doing it right.  Here is how my edit template looks like when it
> almost works:
>

I found some time finally to dig into the issues mentioned in this
thread, over the weekend. My solution - which seems more like
"bandages" - was:
1. I retained the "<div class='editor' macro='edit title'></div> "
line in the edit template, but added the following line to the
StyleSheet to not display it: .editor, .editor input, .editor
textarea { display: none;}.
2. To solve the problem of TidIDE closing the tiddler after the edit
but when I try to close the file, getting the "... want to abandon
your changes ..." message, I added the following two lines to the end
of the tidIDE.save(...) function:
story.closeTiddler(title);
story.displayTiddler(null, title);

Both of these are probably "bandage" solutions. I needed a solution
that worked for my limited use and, these fixes seemed to pass my
minimal validation (which is trying some twenty or fewer times to
break it through random ways :-)) But if you have suggestions on
these, I will be happy to take them :-)
Reply all
Reply to author
Forward
0 new messages