blob: f53f48ca6a97d2967d129d96286621611ec573fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
import { BasicField } from "./BasicField";
import { Types } from "../server/Message";
import { FieldId } from "./Field";
export class RichTextField extends BasicField<string> {
constructor(data: string = "", id?: FieldId, save: boolean = true) {
super(data, save, id);
}
ToScriptString(): string {
return `new RichTextField(${this.Data})`;
}
Copy() {
return new RichTextField(this.Data);
}
ToJson() {
return {
type: Types.RichText,
data: this.Data,
id: this.Id
};
}
}
|