Skip to content
Open in

Active Members ​

Active members displays who else is working on the same email template. The editor renders the list you give it, which makes it a presence indicator rather than full real-time co-editing: two people editing at once will see each other's names, but not each other's changes as they happen.

How to set active members ​

Pass an array of strings to setActiveMembers:

ts
editor.setActiveMembers([
  "test1@topol.io",
  "test2@topol.io"
]);

The strings are usually emails or display names. The editor shows how many members are active in a badge next to the template name, which lists their names on hover. The badge lives in the Window Bar, so the windowBar option must list at least one button for it to appear.

The editor does not detect presence on its own. Who is currently in a template is something your application already knows, so this method takes whatever your collaboration backend reports. Call it whenever that list changes, whether it arrives over WebSocket events or from polling, and the editor updates to match.