Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

not working in angular v8 #9

Open
rsinghania opened this issue Oct 5, 2019 · 3 comments
Open

not working in angular v8 #9

rsinghania opened this issue Oct 5, 2019 · 3 comments

Comments

@rsinghania
Copy link

Tried given steps in the readme file but m not able to find method fromString()
tried adding dependencies in the dev dependency but no luck.

@jprules321
Copy link

I am using Angular 8 with Electron and I always get an HTML doc with empty body returned from fromString() even with RTF from the example.

public rtfToHtml(rtf: string): Promise<string> { return new Promise((resolve, reject) => { this.electron.rtf.fromString('{\\rtf1\\ansi\\b hi there\\b0}', (err, doc) => { if (err) { reject(err); } resolve(doc); }); }); }

returns

`

<style> body { margin-left: 90pt; margin-right: 90pt; margin-top: 72pt; margin-bottom: 72pt; font-size: 12pt; text-indent: 0pt; } </style> `

@Romick2005
Copy link
Contributor

Can you please check it here #6?

@Romick2005
Copy link
Contributor

Can we close this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants