• Call Built-in Editor from Javascript

    From Blakdeth@VERT/MASQBBS to All on Sun Jun 1 10:07:21 2008
    This might be wishful thinking, but is there a way to call the SBBS built-inãeditor from a Javascript process? I would love to have the ability to call theãbuilt-in editor in much the same way one would call getstr. That is, you wouldãhave the option of passing in text to edit, and then the built-in editorãwould return the edited text as a string to the calling process. Thoughts?ãã-bdã--ãBlakdethãMasquerade BBS // telnet://masqueradebbs.comãhttp://www.masqueradebbs.com // blakdeth@masqueradebbs.comããã---ã þ Synchronet þ Masquerade BBS - http://www.masqueradebbs.comã
  • From Digital Man@VERT to Blakdeth on Sun Jun 1 11:50:51 2008
    Re: Call Built-in Editor from Javascriptã By: Blakdeth to All on Sun Jun 01 2008 10:07 amãã > This might be wishful thinking, but is there a way to call the SBBSã > built-in editor from a Javascript process? I would love to have the abilityã > to call the built-in editor in much the same way one would call getstr.ã > That is, you would have the option of passing in text to edit, and then theã > built-in editor would return the edited text as a string to the callingã > process. Thoughts?ããYou can use console.editfile() to edit or create a text file (seeãhttp://synchro.net/docs/jsobjs.html#console_methods for details) and then readãthat file into your script with File.readAll().ãã digital man (xbox-live: digitlman)ããSnapple "Real Fact" #107:ãYou burn more calories sleeping than watching TV.ãNorco, CA WX: 64.2øF, 67% humidity, 0 mph SE wind, 0.00 inches rain/24hrsã---ã þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.netã
  • From Deuce@VERT/SYNCNIX to Blakdeth on Sun Jun 1 13:13:08 2008
    Re: Call Built-in Editor from Javascriptã By: Blakdeth to All on Sun Jun 01 2008 10:07 amãã > This might be wishful thinking, but is there a way to call the SBBSã > built-in editor from a Javascript process? I would love to have the abilityã > to call the built-in editor in much the same way one would call getstr.ã > That is, you would have the option of passing in text to edit, and then theã > built-in editor would return the edited text as a string to the callingã > process. Thoughts?ããAlmost, and you can do it...ããconsole.editfile() and system.temp_dir are a good place to start. Though Iãdon't see a function to generate a temporary filename, so you'll want to eitherãdo that or put it in the node directory instead.ãã--- ãSynchronet - Jump on the Web 0.2 bandwagon!ãã---ã þ Synchronet þ My Brand-New BBS (All the cool SysOps run STOCK!)ã
  • From Blakdeth@VERT/MASQBBS to Digital Man on Mon Jun 2 08:27:04 2008
    ã > > This might be wishful thinking, but is there a way to callã > > the SBBS built-in editor from a Javascript process? Iã > > would love to have the abili to call the built-in editorã > > in much the same way one would call getstr. That is, youã > > would have the option of passing in text to edit, and thenã > > t built-in editor would return the edited text as a stringã > > to the calling process. Thoughts?ã > You can use console.editfile() to edit or create a text fileã > (see http://synchro.net/docs/jsobjs.html#console_methods forã > details) and then re that file into your script withã > File.readAll().ããThank you digital man and Deuce. I appreciate the input. I will give this a ãtry.ãã-bdã--ãBlakdethãMasquerade BBS // telnet://masqueradebbs.comãhttp://www.masqueradebbs.com // blakdeth@masqueradebbs.comããã---ã þ Synchronet þ Masquerade BBS - http://www.masqueradebbs.comã