Iterate PR
This commit is contained in:
parent
6fd1dc7d18
commit
e0ac200e27
3 changed files with 9 additions and 9 deletions
|
@ -30,24 +30,24 @@ export default class EditorStateTransfer {
|
|||
|
||||
constructor(private readonly event: MatrixEvent) {}
|
||||
|
||||
setEditorState(caret: Caret, serializedParts: SerializedPart[]) {
|
||||
public setEditorState(caret: Caret, serializedParts: SerializedPart[]) {
|
||||
this.caret = caret;
|
||||
this.serializedParts = serializedParts;
|
||||
}
|
||||
|
||||
hasEditorState() {
|
||||
public hasEditorState() {
|
||||
return !!this.serializedParts;
|
||||
}
|
||||
|
||||
getSerializedParts() {
|
||||
public getSerializedParts() {
|
||||
return this.serializedParts;
|
||||
}
|
||||
|
||||
getCaret() {
|
||||
public getCaret() {
|
||||
return this.caret;
|
||||
}
|
||||
|
||||
getEvent() {
|
||||
public getEvent() {
|
||||
return this.event;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue