Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • Synchronet Synchronet
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 263
    • Issues 263
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
    • Model experiments
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

Admin message

This GitLab instance has migrated as of Nov-5-2022 to a new server: hardware, OS, SSH key

Admin message

The v3.20a development branch has now been merged to the master branch. Sysops upgrading from earlier versions must run 'jsexec update'

  • MainMain
  • SynchronetSynchronet
  • Issues
  • #109

Edit existing message

  Re: Message base: Editing existing messages
  By: Nightfox to All on Thu Jun 11 2009 03:57 pm

 > Hi all -
 >
 > One of the toggle options for a message area is whether or not a user can
 > edit existing messages.  I've been looking at Synchronet's JS documentation
 > trying to find a function that will allow a user to edit an existing
 > message, but the docs don't seem to mention a function that would do that.
 > Is
 > there a way to do that in JavaScript?

If you're looking for a high-level method (where it automatically uses the user's configured editor, etc.) there is no such function. You can however load the message's text (using the MsgBase class) into a buffer, save to a file, then use the console.editfile() function to edit the contents, load the file contents back into a buffer an duse the MsgBase class to save the modified message body.

It's probably not worth the effort. :-)

The C++ method that would need to be exposed via JS (and isn't) is sbbs_t::editmsg() and it wouldn't be trivial to do since it needs an open message as an argument. I'll add it to the to-do list however.

                                            digital man

Snapple "Real Fact" #73:
The average person spends 2 weeks of it's life waiting for a traffic light to change.
Assignee
Assign to
Time tracking