MCPcopy
hub / github.com/mailvelope/mailvelope / editorContainer

Function editorContainer

src/content-scripts/clientAPI.js:165–176  ·  view source on GitHub ↗
({selector, keyringId, options = {}})

Source from the content-addressed store, hash-verified

163}
164
165function editorContainer({selector, keyringId, options = {}}) {
166 if (options.quotedMailIndent === undefined && !options.armoredDraft) {
167 options.quotedMailIndent = true;
168 }
169 if (options.quota) {
170 // kilobyte -> byte
171 options.quota = parseInt(options.quota) * 1024;
172 }
173 const container = new EditorContainer(selector, keyringId, options);
174 containers.set(container.id, container);
175 return container.create();
176}
177
178async function settingsContainer() {
179 throw new MvError('The settings container has been deprecated. Use keyring.openSettings() instead to open the settings in a new browser tab.', 'FEATURE_DEPRECATED');

Callers

nothing calls this directly

Calls 2

createMethod · 0.95
setMethod · 0.45

Tested by

no test coverage detected