()
| 19 | |
| 20 | export default class EncryptFrame { |
| 21 | constructor() { |
| 22 | this.id = getUUID(); |
| 23 | this.editElement = null; |
| 24 | this.eFrame = null; |
| 25 | this.port = null; |
| 26 | this.emailTextElement = null; |
| 27 | // type of external editor |
| 28 | this.editorType = PLAIN_TEXT; //prefs.general.editor_type; |
| 29 | this.keyCounter = 0; |
| 30 | this.currentProvider = currentProvider; |
| 31 | this.handleKeypress = this.handleKeypress.bind(this); |
| 32 | this.setFrameDim = this.setFrameDim.bind(this); |
| 33 | } |
| 34 | |
| 35 | attachTo(element) { |
| 36 | this.init(element); |