Integrating RadEditor for ASP.NET AJAX with the WIRIS family of products

by ASP.NET AJAX Team | Comments 10
We have received several requests to integrate a formula editor for RadEditor or allow editing of MathML. The wonderful guys at WIRIS(http://www.wiris.com/) have the right tools for this job so we decided to post an example of the WIRIS formula editor and CAS working as RadEditor dialogs.

 

A couple of words about the formula editor - it uses a Java applet so be sure to have the Java plugin installed in your browser. We used the basic ASPX demo that WIRIS offers as a base for our integration example. The demo can be seen here - http://www.wiris.eu/demo-aspx/pluginwiris/generic/. There are two editors that we converted to dialogs - a formula editor and a CAS (Computer Algebra System). We made a number of changes to the basic demo. and converted it to a proper ASP.NET website using .NET 3.5 (it was originally using .NET 1.0).

Here is a screenshot of the demo:

Demo

Here is the download link for the integration example: WIRIS_RadEditor (updated)

UPDATE: The demo project in this post was updated on 5/20/2010 with the latest version of RadEditor. The demo has been tested on IE, Firefox, Chrome browsers and should be compatible with all of them.

About the author

Iana Tsolova

Iana Tsolova

is Program Manager of Telerik’s ASP.NET AJAX division. She joined the company back in the beginning of 2008 as a Support Officer and has since occupied various positions at Telerik, including Senior Support Officer, Team Lead at one of the ASP.NET AJAX teams and Technical Support Director. Iana’s main interests are web development, reading articles related to geography, wild nature and latest renewable energy technologies.

10 Comments

Mark
I have the WIRIS sample up and running in an ASP.NET project, however the integration only appears to work for IE.  In Firefox on a PC there seems to be javascript errors when referencing the various properties of the "applet" object.  I have tried debugging using Firebug, but cannot seem to make headway on where the problem is or how to make it cross-browser friendly.  Any help?
Nick
Just trying to launch this in VS, get XSS warning when I click Accept on the equation editor.  I set ValidateRequest=False in the default.aspx Page, just for testing, but I get no love.  Any thoughts?  This looks really neat, exactly what I need, in fact we would go ahead and purchase the Telerik controls suite just for this.  But if it don't work, then nein!
Manoj
When i am trying to run the project i am facing some issues. Here are the detailed issues:
1. On a Mozilla firefox brower it works fine till it creates an equation, but after i do a accept/postback to render that image in the browser it shows its 'alt' tag content and it doesn't shows the image.
2. I am also facing some issues in IE, it displays that Java is required to perform the operations.

Any help?

Stoyan Stratev
The Java browser plugin is required to run the equation editor. Make sure that Java is enabled on all browsers. The missing image problem will happen if there is a problem with the image handler (the ASP.NET page that converts the equation code to the actial visual representation. This can happen if your site is not configured correctly to use ASP.NET. You can try using a HTTP debugging proxy (Fiddler for IE or Firebug for Firefox) and see the response for the equation image request that fails.
Mohammed Alterkawi
Thanks for this beautiful tool and for the great example of integration!

I faced the following litter problem:

After I have put every folder and file in it's place as described, and when I run the application, and click on the button to show the Equation editor, I got the following error dialog:

"The command WIRISformula is not implemented yet"!

Any help with this error!
Mohammed Alterkawi
Thanks for this beautiful tool and for the great example of integration!

I faced the following litter problem:

After I have put every folder and file in it's place as described, and when I run the application, and click on the button to show the Equation editor, I got the following error dialog:

"The command WIRISformula is not implemented yet"!

Any help with this error!
kat simpson
hi do you have sample implementation in vb?
thanks
lini
The integration code was downloaded from the WIRIS website. You should first ask them if they have a VB.NET version in addition to the C# one.
You can also try an online converter from C# to VB, such as http://codechanger.com/
Nuthan
If i use this in my project it wont work it perfroms abnormal when i click on wiris button it opens and close entire thing could you tell y and how to overcome the problem

Comments

  1.    
      
      
       
  2. (optional, emails won't be shown on public pages)
  3. (optional)
Read more articles by ASP.NET AJAX Team - or - read latest articles in Developer Tools