text editor interface (#17527)

This commit is contained in:
Alan Ren
2021-10-28 13:23:33 -07:00
committed by GitHub
parent 447b969b5c
commit 12261aa7a2
4 changed files with 61 additions and 6 deletions

View File

@@ -188,3 +188,18 @@ export interface DesignerEditResult {
isValid: boolean;
errors?: { message: string, property?: DesignerEditIdentifier }[];
}
export interface DesignerTextEditor {
/**
* Gets or sets the content of the text editor
*/
content: string;
/**
* Gets or sets a boolean value indicating whether the editor is readonly
*/
readonly: boolean;
/**
* Event fired when the content is changed by user
*/
readonly onDidContentChange: Event<string>;
}