customEditor in c#

Posted on 2013-01-28
Medium Priority
Last Modified: 2013-02-01
hey guys i have a customEditor now my problem i am having is when my client has a word document with style on it and copy and past it in the editor i do not want to format it with the same font and size becouse my web site pull the information from data base and displays it on a web page
Question by:JCWEBHOST
  • 2
  • 2
LVL 12

Expert Comment

ID: 38828009
You will need to either detect the paste event or handle the event when information is added to the editor and then add logic that will remove or alternatively format any undesired formatting text that is copied into the editor.

Author Comment

ID: 38830277
can you show me the method for that and how to format it like

<p class="light-black-13">XXXXX<.p>

if like put <.br>
LVL 12

Accepted Solution

topdog770 earned 1500 total points
ID: 38831319
That's hard to do without actually using your code as the starting point, but, if you were doing it in javascript, it would look like this..

You may also be able to use one of the events of whatever control you are using to display text in your editor and look at the textchanged event or similiar event to detect formatting characters that you want to replace.

Author Closing Comment

ID: 38843587

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
There is a wide range of advantages associated with the use of ASP.NET. This is why this programming framework is used to create excellent enterprise-class websites, technologies, and web applications.
When you have multiple client accounts to manage, it often feels like there aren’t enough hours in the day. With too many applications to juggle, you can’t focus on your clients, much less your growing to-do list. But that doesn’t have to be the cas…
To export Lotus Notes to Outlook PST or Exchange and Domino Server files to Exchange Server or PST files with ease, go for Kernel for Lotus Notes to Outlook conversion tool. Through the video, you can watch the conversion process. A common user with…

587 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question