mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-24 09:08:18 +00:00
Iterate PR
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user