clean up of Text class
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
import {Text} from "../xml-components";
|
import {Text} from "./text";
|
||||||
import {Run} from "../run";
|
import {Run} from "../run";
|
||||||
|
|
||||||
export class TextRun extends Run {
|
export class TextRun extends Run {
|
||||||
|
9
ts/docx/run/text.ts
Normal file
9
ts/docx/run/text.ts
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
import {XmlUnitComponent} from "../xml-components"
|
||||||
|
|
||||||
|
export class Text extends XmlUnitComponent {
|
||||||
|
|
||||||
|
constructor(text: string) {
|
||||||
|
super("w:t");
|
||||||
|
this.root = text;
|
||||||
|
}
|
||||||
|
}
|
@ -1,3 +0,0 @@
|
|||||||
export class Text {
|
|
||||||
|
|
||||||
}
|
|
@ -122,12 +122,4 @@ export class Attributes extends XmlAttributeComponent {
|
|||||||
this.root = {};
|
this.root = {};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class Text extends XmlUnitComponent {
|
|
||||||
|
|
||||||
constructor(text: string) {
|
|
||||||
super("w:t");
|
|
||||||
this.root = text;
|
|
||||||
}
|
|
||||||
}
|
|
Reference in New Issue
Block a user