|
Rank: Newbie Groups: Member
Joined: 5/4/2010 Posts: 4
|
Is there any way to set up my programme so that it automatically removes the ms word formating in the code when the form is submitted?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Yes. Please try the following code:
Code: HTML/ASPX
<form onsubmit="cleanup_editor()" ....>
....
<eo:Editor id="Editor1" ....>
....
</eo:Editor>
....
</form>
Code: JavaScript
function cleanup_editor()
{
//Get the HTML Editor object
var editor = eo_GetObject("Editor1");
//Clean up Word format
editor.execCommand("ClearWordFormat");
}
Thanks!
|
|
Rank: Newbie Groups: Member
Joined: 5/4/2010 Posts: 4
|
Many thanks
Is this possible in vb.net. When I click on a button.
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click
code to clear word format here?????
End Sub
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
The code we provided should give you the same result. Just try it and you will see how it works.
Thanks!
|
|