?
Solved

customEditor in c#

Posted on 2013-01-28
4
Medium Priority
?
190 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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 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..
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

Stack Overflow Podcast - Developer Story

Welcome to the Stack Overflow podcast recorded Thursday July 20 at Stack Overflow Headquearters in NYC. Your hosts today are podcast regulars Jay Hanlon, David Fullerton, and Ilana Yitzhaki, plus the quite irregular Matt Sherman (Stack Overflow Engineering Manager extraordinaire)

Question has a verified solution.

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

Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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