# WYSIWYG Editing in Mozilla Firefox

> BrowserTextControl from TX Text Control Server for ASP.NET supports WYSIWYG editing in browsers. This post shows how to host the control inside a WPF XBAP application using WindowsFormsHost, enabling deployment via ClickOnce to both Internet Explorer and Firefox with .NET 3.5 SP1.

- **Author:** Bjoern Meyer
- **Published:** 2008-10-20
- **Modified:** 2026-07-17
- **Description:** BrowserTextControl from TX Text Control Server for ASP.NET supports WYSIWYG editing in browsers. This post shows how to host the control inside a WPF XBAP application using WindowsFormsHost, enabling deployment via ClickOnce to both Internet Explorer and Firefox with .NET 3.5 SP1.
- **2 min read** (369 words)
- **Tags:**
  - Firefox
  - .NET
  - WPF
  - XBAP
- **Web URL:** https://www.textcontrol.com/blog/2008/10/20/wysiwyg-editing-in-mozilla-firefox/
- **LLMs URL:** https://www.textcontrol.com/blog/2008/10/20/wysiwyg-editing-in-mozilla-firefox/llms.txt
- **LLMs-Full URL:** https://www.textcontrol.com/blog/2008/10/20/wysiwyg-editing-in-mozilla-firefox/llms-full.txt

---

To integrate a true WYSIWYG document editing into a web application, a client-side control is necessary. 'Rich Text Controls' for ASP.NET were often advertised as WYSIWYG. These plain server-side solutions creating pure HTML and Javascript are simply not powerful enough to render in a true WYSIWYG manner.

TX Text Control Server for ASP.NET (incl. Windows Forms) comes with the BrowserTextControl class. This is a pure .NET assembly that can be integrated into a Windows Forms user control, copied into a folder on server-side and downloaded to the client machine. It is saved automatically in a special download cache folder of Microsoft .NET (the download cache). Based on the code access security of .NET, these assemblies can be embedded and executed in an HTML page of an ASP.NET web application project.

Additionally, it is possible to integrate the BrowserTextControl into a WPF browser application that is deployed as an [XBAP application](http://msdn.microsoft.com/en-us/library/aa970060.aspx).

These XAML browser applications (XBAP) are using a technique to deploy a WPF application using ClickOnce to client-side.

As of the release of .NET Framework 3.0, XBAPs only run in Internet Explorer. With the new [release of .NET Framework 3.5 SP1](http://msdn.microsoft.com/en-us/library/cc716877.aspx), they also run in Mozilla Firefox due to a new XBAP extension for [Firefox](http://www.mozilla.com).

To create such an XBAP application, you will need Visual Studio 2008 to create a new WPF browser application project. Additionally, a Windows Forms User Control project must be created like described in our BrowserTextControl documentation.

A Windows Forms Host Control will be placed into a Page of the WPF application. In the constructor of the Page, we can create a new instance of the Windows Forms User Control and attach the user control using the Child property of the hosting interop control:

```
public Page1()
{
  InitializeComponent();
  TX = new WindowsFormsControlLibrary1.UserControl1();
  windowsFormsHost1.Child = TX;
}
```

This sample implements a method to load documents into the TX Text Control. Feel free to contact me, if you have any questions or suggestions about this. I look forward to hearing from you.

[Download the sample here](https://s1-www.textcontrol.com/assets/dist/blog/2008/10/20/a/assets/wpf_browsertextcontrol.zip)

---

## About Bjoern Meyer

As CEO, Bjoern is the visionary behind our strategic direction and business development, bridging the gap between our customers and engineering teams. His deep passion for coding and web technologies drives the creation of innovative products. If you're at a tech conference, be sure to stop by our booth - you'll most likely meet Bjoern in person. With an advanced graduate degree (Dipl. Inf.) in Computer Science, specializing in AI, from the University of Bremen, Bjoern brings significant expertise to his role. In his spare time, Bjoern enjoys running, paragliding, mountain biking, and playing the piano.

- [LinkedIn](https://www.linkedin.com/in/bjoernmeyer/)
- [X](https://x.com/txbjoern)
- [GitHub](https://github.com/bjoerntx)

---

## Related Posts

- [Create a Table of Contents in Windows Forms using C#](https://www.textcontrol.com/blog/2023/01/23/create-toc-in-windows-forms/llms.txt)
