Solved

customEditor in c#

Posted on 2013-01-28
4
188 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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