[tw] Re: Question: Viewing tiddlers in read only mode

2013-05-23 Thread cflow
Thanks Eric!

On Saturday, September 19, 2009 4:52:23 AM UTC+10, Eric Shulman wrote:

  I am curious why we can't have a macro that would disalbe 
  doubleclicking anywhere in the browser when a checkbox is selected and 
  enable the dobuleclicking again when the checkbox selection is 
  removed.  Would that not work? 

 Of course it would work.  However, it involves using a plugin to 
 redefine the core's double-click handler... rather than simply 
 customizing the standard TW [[ToolbarCommands]] configuration by 
 removing the leading + from the command.  It just seems like it 
 would be using a sledgehammer to swat a fly.  Nonetheless, here's 
 the relevant code (put it in a tiddler tagged 'systemConfig') 
  
 if (config.options['chkDoubleClickToEdit']===undefined) 
 config.options['chkDoubleClickToEdit']=true; 
 if (!Story.prototype.onTiddlerDblClick_save) { 
  
 Story.prototype.onTiddlerDblClick_save=Story.prototype.onTiddlerDblClick; 
 Story.prototype.onTiddlerDblClick = function(ev) { 
 if (config.options['chkDoubleClickToEdit']) 
 return 
 story.onTiddlerDblClick_save.apply(this,arguments); 
 } 
 } 
  
 Then, embed 
option chkDoubleClickToEdit double-click to edit 
 somewhere in your document, or add something like: 
config.options.chkDoubleClickToEdit=false; 
 to a tiddler tagged with 'systemConfig' (e.g., [[CookieJar]]) 

 enjoy, 
 -e 


-- 
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 tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




[tw] Re: Question: Viewing tiddlers in read only mode

2009-09-18 Thread Eric Shulman

 I would like to toggle back and forth between the normal viewing and
 read-only viewing.

Give this a try:
   http://www.TiddlyTools.com/#ToggleReadOnly

enjoy,
-e


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Question: Viewing tiddlers in read only mode

2009-09-18 Thread Shankar



On Sep 18, 12:46 am, Eric Shulman elsdes...@gmail.com wrote:
  I would like to toggle back and forth between the normal viewing and
  read-only viewing.

 Give this a try:
    http://www.TiddlyTools.com/#ToggleReadOnly

 enjoy,
 -e

Hi Eric,

Thanks for the quick help - yet again.

I think I am missing something here.  I selected the checkbox and
tried double clicking on the tiddler and the tiddler opened as usual
in the TidIDE Editor!  Later, I tried it on your site - again, doubble
clicking does open the tiddler for edit.

I am sure I am missing something here. Could you help, please?

Thanks!

Cheers; 'best,

shankar swamy
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Question: Viewing tiddlers in read only mode

2009-09-18 Thread Eric Shulman

     http://www.TiddlyTools.com/#ToggleReadOnly
 I think I am missing something here.  I selected the checkbox and
 tried double clicking on the tiddler and the tiddler opened as usual
 in the TidIDE Editor!  Later, I tried it on your site - again, doubble
 clicking does open the tiddler for edit.

When a document is in read-only mode, double-clicking a tiddler
*displays* the tiddler source, but does not let you *edit* that
content.

What you want to do is to disable the double-click.

The easiest way to do this is to edit [[ToolbarCommands]] and find
+editTiddler (in the ViewToolbar table slice).  Remove the leading
+ to disable double-clicking.  You can, of course, still use the
edit toolbar command to edit a tiddler.

enjoy,
-e
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Question: Viewing tiddlers in read only mode

2009-09-18 Thread Shankar


On Sep 18, 7:09 am, Eric Shulman elsdes...@gmail.com wrote:
      http://www.TiddlyTools.com/#ToggleReadOnly
  I think I am missing something here.  I selected the checkbox and
  tried double clicking on the tiddler and the tiddler opened as usual
  in the TidIDE Editor!  Later, I tried it on your site - again, doubble
  clicking does open the tiddler for edit.
 ...  


Eric, thanks - again!

Not exactly what I was hoping to hear - but will do the job for me at
an acceptable level.

I am curious why we can't have a macro that would disalbe
doubleclicking anywhere in the browser when a checkbox is selected and
enable the dobuleclicking again when the checkbox selection is
removed.  Would that not work?

I am by no means a Javascirpt/AJAX/Tiddly/... programmer or even
literate on those topics - but that was the solution I was imagining
when I thought of this first.

Cheers; 'best,

shankar swamy

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---



[tw] Re: Question: Viewing tiddlers in read only mode

2009-09-18 Thread Eric Shulman

 I am curious why we can't have a macro that would disalbe
 doubleclicking anywhere in the browser when a checkbox is selected and
 enable the dobuleclicking again when the checkbox selection is
 removed.  Would that not work?

Of course it would work.  However, it involves using a plugin to
redefine the core's double-click handler... rather than simply
customizing the standard TW [[ToolbarCommands]] configuration by
removing the leading + from the command.  It just seems like it
would be using a sledgehammer to swat a fly.  Nonetheless, here's
the relevant code (put it in a tiddler tagged 'systemConfig')

if (config.options['chkDoubleClickToEdit']===undefined)
config.options['chkDoubleClickToEdit']=true;
if (!Story.prototype.onTiddlerDblClick_save) {

Story.prototype.onTiddlerDblClick_save=Story.prototype.onTiddlerDblClick;
Story.prototype.onTiddlerDblClick = function(ev) {
if (config.options['chkDoubleClickToEdit'])
return 
story.onTiddlerDblClick_save.apply(this,arguments);
}
}

Then, embed
   option chkDoubleClickToEdit double-click to edit
somewhere in your document, or add something like:
   config.options.chkDoubleClickToEdit=false;
to a tiddler tagged with 'systemConfig' (e.g., [[CookieJar]])

enjoy,
-e

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
TiddlyWiki group.
To post to this group, send email to tiddlywiki@googlegroups.com
To unsubscribe from this group, send email to 
tiddlywiki+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/tiddlywiki?hl=en
-~--~~~~--~~--~--~---