• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 195
  • Last Modified:

customEditor in c#

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
JCWEBHOST
Asked:
JCWEBHOST
  • 2
  • 2
1 Solution
 
topdog770Commented:
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
 
JCWEBHOSTAuthor Commented:
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
 
topdog770Commented:
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
 
JCWEBHOSTAuthor Commented:
thanks
0
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

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now