* 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)
| 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 |
no test coverage detected