Solved

customEditor in c#

Posted on 2013-01-28
4
186 Views
Last Modified: 2013-02-01
pic
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
0
Comment
Question by:JCWEBHOST
  • 2
  • 2
4 Comments
 
LVL 12

Expert Comment

by:topdog770
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.
0
 

Author Comment

by:JCWEBHOST
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>
0
 
LVL 12

Accepted Solution

by:
topdog770 earned 500 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..
http://rayaspnet.blogspot.com/2011/01/how-to-implement-textchanged-event.html

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.
0
 

Author Closing Comment

by:JCWEBHOST
ID: 38843587
thanks
0

Featured Post

How Do You Stack Up Against Your Peers?

With today’s modern enterprise so dependent on digital infrastructures, the impact of major incidents has increased dramatically. Grab the report now to gain insight into how your organization ranks against your peers and learn best-in-class strategies to resolve incidents.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Generate Numbers in JQuery file 11 66
SSIS Start 2 21
ASP.NET MVC - Views 3 21
VB.net Code to make a TaskPane float in Excel Add-in 2 9
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

828 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