MCPcopy Create free account
hub / github.com/mailvelope/mailvelope / constructor

Function constructor

src/components/editor/editor.js:48–81  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

46
47export default class Editor extends React.Component {
48 constructor(props) {
49 super(props);
50 this.state = {
51 defaultKey: false,
52 defaultPlainText: '',
53 embedded: false,
54 extraKey: false,
55 extraKeys: [],
56 files: [],
57 hasUserInput: false,
58 integration: false,
59 notification: null,
60 plainText: '',
61 privKeys: [],
62 publicKeys: [],
63 pwdDialog: null,
64 recipients: [],
65 recipientsCc: [],
66 showNotification: false,
67 showRecipientsCc: false,
68 signKey: '',
69 signMsg: false,
70 subject: '',
71 terminate: false,
72 waiting: true
73 };
74 this.encryptTimeout = null;
75 this.port = EventHandler.connect(`editor-${this.props.id}`, this);
76 // flag to control time slice for input logging
77 this.logTextareaInput = true;
78 this.registerEventListeners();
79 // ref to blur warning
80 this.blurWarning = null;
81 }
82
83 componentDidMount() {
84 this.port.emit('editor-mount');

Callers

nothing calls this directly

Calls 2

connectMethod · 0.45

Tested by

no test coverage detected