monaco-editor-core
Version:
A browser based code editor
19 lines • 1.01 kB
JavaScript
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import { Emitter } from '../../../../base/common/event.js';
import { ViewPart } from '../../view/viewPart.js';
export class AbstractEditContext extends ViewPart {
constructor() {
super(...arguments);
// Clipboard events - emitted before the default clipboard handling
this._onWillCopy = this._register(new Emitter());
this.onWillCopy = this._onWillCopy.event;
this._onWillCut = this._register(new Emitter());
this.onWillCut = this._onWillCut.event;
this._onWillPaste = this._register(new Emitter());
this.onWillPaste = this._onWillPaste.event;
}
}
//# sourceMappingURL=editContext.js.map