Is there a way to programatically clean word formatting from within the WebHtmlEditor? Our users are copying text from Word documents but are forgetting to click the icon on the toolbar before saving the text to the database. This is causing issues in the application because we are limiting the amount of text that they can type in. With all of the markup that is added, it almost always fails the max characters constraint.
I would like to clean-up the text on the control when they click the Save button to avoid this issue.
juanseal,
When saving to the database, what property are you saving? The WebHtmlEditor has a TextPlain property that you can save rather than the standard Text. The TextPlain string is the WebHtmlEditor's Text stripped of any HTML tags.
~Kim~
We need to save the HTML version of the text because the users are allowed to save it formatted. They need the text to show up formatted on reports. For this purpose, we are using the TEXT property. Some users have text that they have created in Word (formatted) and they need to copy it to the WebHtmlEditor on the application. We need to keep the formatting, but strip out the Word formatting. They can click the icon on the toolbar, but many of them are forgetting to do so. Can we perform this function programatically?
Hi,
In client-side, you can call the javascript function iged_act("CleanWord", null, null, null, null, null);
Jaimir G.