Solved

customEditor in c#

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

809 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