0

I am trying the most upvoted solution for html to rtf

that is by using the browser.

But even the simple start (everything stripped away)

<script type="text/javascript">
    var webBrowser = new WebBrowser(); 
</script>

gives: ReferenceError: WebBrowser is not defined

What am I missing?

Community
  • 1
  • 1
Webconstructor
  • 525
  • 2
  • 6
  • 15
  • I would read the most up-voted solution again. You are trying to execute in JavaScript what they have done in .NET... – Ian Brindley Jan 29 '15 at 11:30
  • @IanBrindley Well, it *is* JavaScript but it relies on a library provided by .NET. But yes, not being in a .NET environment is the gist of the problem. – JJJ Jan 29 '15 at 11:32

1 Answers1

0

I think that they are talking about a .NET class in that post, not vanilla JavaScript.

If you need browser info you can use navigator

If you want to convert RTF to HTML you have to use a cross-browser WYSIWYG editor, such as CkEditor or openWYSIWYG

xflofoxx
  • 1
  • 1