You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
42 lines
870 B
TypeScript
42 lines
870 B
TypeScript
3 months ago
|
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');
|
||
|
}
|
||
|
}
|