Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Philosophy and methodology to make a web rich-text editor like yahoo e

Status
Not open for further replies.

johnjsforum

Programmer
Jul 30, 2007
11
US
Buddies,
I’d like to make a web rich-text editor (control) like yahoo email editor using JavaScript of C#. Rich-text I mean in that editor, users can color typed characters and the editor does not need to use HTML-markup-tag-instructed like [font color=red]<typed characters>[/font], or <font color=red><typed characters></font> like some sites’ forum editor using.
For example, users can select some characters and hit a button to color those in red. After they hit that button, the characters on the editor are converted to red and users can see those in effect right away and the editor does not have to insert associated HTML-tags into the editor.
Thanks for any ideas about this issue in advance.
John
 
Hi

John said:
I’d like to make a web rich-text editor (control) like yahoo email editor using JavaScript of C#.
Seems you have no proper idea about all that. So better just google for "html rich text editor" and pick one from the list. By the way, the expression "JavaScript of C#" is meaningless. JavaScript is client-side, C# is server-side.

Anyway, if you want to write it yourself, the keywords are "[tt]designMode[/tt]" for Mozilla ( read Midas Specification ) and "[tt]contentEditable[/tt]" for Explorer ( no idea what to read ).

Feherke.
 
BillyRayPreachersSon and Feherke,

Thanks so much for your posts. But I am afraid you guys misundertood what I am looking for. On my aspx page, I can use HTMl control like TextArea, or server-side control like TextBox with multipleline=true. However, as you guys know, those text-editor controls do not give you alot of rich text functionalities as I mentioned in my first box. For example, to bold a typed characters in the control (server control or HTML control), how can I do?

An exmple here in this site's forum ( if you want to post a message, you use the site's message editor. If you want to underline or bold some texts of your message, you have to insert HTML tag like blabla. That behavior I do not like. I like some MS Word editor or Yahoo email editor control on my aspx page.


I am not searching for a stand-alone HTML rich text editor. What I am looking for is a way to code the HTML TextArea or server-side TextBox control to do its jobs on my web page.
Thanks.
john
 
One more thing to be clear,
I'd like to do some thing the control on the web sites you guys show but NOT the HTML scripts it creats.
Thanks.
 
Whats wrong with TinyMCE?
You can edit Tiny MCE to look and feel how you want it too. If you only want the user to be able to color the text and bold it, you can specify that in the parameters passed to tiny_mce init. Also why are you against using a "stand-alone" html rich editor when it is essentially the only to achieve what you imagine doing. Even if you do make your own the best way to implement this type of control is "stand alone" or w/e My suggestion would set up tiny mce and pass the contents of its iframe/message area to whatever aspx page you will be using to process the information.

I've set up tiny MCE to work with php coldfusion. it can be set up to work with any server side language.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top