Subj : bbs.edit_msg() - Empty message
To   : Digital Man
From : Nightfox
Date : Wed Mar 23 2022 08:27 pm

 Re: bbs.edit_msg() - Empty message
 By: Nightfox to Digital Man on Wed Mar 23 2022 08:11 pm

>>> Synchronet 3.18.  I tried calling that with a header for an existing
>>> message in a sub-board.  When my editor came up, it was empty.
>>> Should it be editing the existing message contents?

DM>> Yes, that's how I use it in msglist.js:

DM>> bbs.edit_msg(list[current]);

DM>> And that list[] value is a returned object from
DM>> MsgBase.get_msg_header().

I got it to work.  It seems the MsgBase object associated with the header needs to still be open for it to work (even though you aren't passing the MsgBase object to edit_msg()).

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com