MCPcopy Index your code
hub / github.com/mailvelope/mailvelope / setEditorOutput

Method setEditorOutput

src/content-scripts/encryptFrame.js:176–182  ·  view source on GitHub ↗

* Is called after encryption and injects ciphertext and recipient * email addresses into the webmail interface. * @param {String} options.text The encrypted message body * @param {Array} options.to The recipients to be added * @param {Array} options.cc The copy recipients t

(options)

Source from the content-addressed store, hash-verified

174 * @param {Array} options.cc The copy recipients to be added (not yet supported)
175 */
176 setEditorOutput(options) {
177 // set message body
178 this.normalizeButtons();
179 this.setMessage(options.text);
180 // set recipient email addresses
181 this.currentProvider.setRecipients({recipients: options.to, editElement: this.editElement});
182 }
183
184 /**
185 * Replace content of editor element (_emailTextElement)

Callers 1

Calls 3

normalizeButtonsMethod · 0.95
setMessageMethod · 0.95
setRecipientsMethod · 0.45

Tested by

no test coverage detected