clean up of Text class

This commit is contained in:
Dolan Miu
2016-05-09 13:02:59 +01:00
parent 9b268314e6
commit ea1390b86b
4 changed files with 11 additions and 13 deletions

View File

@ -1,4 +1,4 @@
import {Text} from "../xml-components";
import {Text} from "./text";
import {Run} from "../run";
export class TextRun extends Run {

9
ts/docx/run/text.ts Normal file
View File

@ -0,0 +1,9 @@
import {XmlUnitComponent} from "../xml-components"
export class Text extends XmlUnitComponent {
constructor(text: string) {
super("w:t");
this.root = text;
}
}

View File

@ -1,3 +0,0 @@
export class Text {
}

View File

@ -123,11 +123,3 @@ export class Attributes extends XmlAttributeComponent {
}
}
}
export class Text extends XmlUnitComponent {
constructor(text: string) {
super("w:t");
this.root = text;
}
}