-
Notifications
You must be signed in to change notification settings - Fork 184
Expand file tree
/
Copy pathSimplePluginCode.ts
More file actions
47 lines (39 loc) · 997 Bytes
/
SimplePluginCode.ts
File metadata and controls
47 lines (39 loc) · 997 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { CodeElement } from './CodeElement';
class SimplePluginCode extends CodeElement {
constructor(private name: string, private namespace: string = 'roosterjs') {
super();
}
getCode() {
return `new ${this.namespace}.${this.name}()`;
}
}
export class EditPluginCode extends SimplePluginCode {
constructor() {
super('EditPlugin');
}
}
export class PastePluginCode extends SimplePluginCode {
constructor() {
super('PastePlugin');
}
}
export class ShortcutPluginCode extends SimplePluginCode {
constructor() {
super('ShortcutPlugin');
}
}
export class TableEditPluginCode extends SimplePluginCode {
constructor() {
super('TableEditPlugin');
}
}
export class ImageEditPluginCode extends SimplePluginCode {
constructor() {
super('ImageEditPlugin');
}
}
export class DragAndDropPluginCode extends SimplePluginCode {
constructor() {
super('DragAndDropPlugin');
}
}