MCPcopy
hub / github.com/mailvelope/mailvelope / createEditorContainer

Method createEditorContainer

src/client-API/client-api.js:142–149  ·  view source on GitHub ↗

* Creates an iframe with an editor for a new encrypted mail. * The iframe will be injected into the container identified by selector. * @param {CssSelector} selector - target container * @param {Keyring} [keyring] - the keyring to use for this operation * @param {EditorContainerOptions}

(selector, keyring, options)

Source from the content-addressed store, hash-verified

140 * });
141 */
142 createEditorContainer(selector, keyring, options) {
143 try {
144 checkTypeKeyring(keyring);
145 } catch (e) {
146 return Promise.reject(e);
147 }
148 return send('editor-container', {selector, identifier: keyring && keyring.identifier, options}).then(editorId => new Editor(editorId));
149 }
150
151 /**
152 * @typedef {Object} SettingsContainerOptions

Callers 1

createEditorMethod · 0.80

Calls 3

checkTypeKeyringFunction · 0.85
rejectMethod · 0.80
sendFunction · 0.70

Tested by

no test coverage detected