Important alert: (current site time 7/15/2013 11:57:50 AM EDT)
 

winzip icon

Cross-Browser Rich-Text Editor

Email
Submitted on: 4/1/2003 10:40:04 AM
By: Kevin Roth  
Level: Advanced
User Rating: By 31 Users
Compatibility: JavaScript
Views: 72168
author picture
 
     I've written a cross-browser rich-text editor implementing the Midas API included with Mozilla 1.3+. See a demo at: http://www.kevinroth.com/rte/demo.htm

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.

Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

6/12/2003 4:46:18 PMboots

Top class, thankyou for posting this.
(If this comment was disrespectful, please report it.)

 
7/4/2003 6:47:07 PMDavid Liu

TOTALLY AWESOME! No wonder you won the coding contest! This is *exactly* what I needed! 5 globes and THANKS!
(If this comment was disrespectful, please report it.)

 
2/12/2004 12:23:15 PM

Nice Work! This is a great all around component! I may have some ideas how you can extened it further.
(If this comment was disrespectful, please report it.)

 
2/17/2004 10:43:45 AMKevin Roth

For the most up-to-date version of this code, go to http://www.kevinroth.com/rte/demo.htm. I try to stay on top of bug fixes as best I can.
(If this comment was disrespectful, please report it.)

 
2/29/2004 12:11:19 AM

Superb! Thanks for sharing.
(If this comment was disrespectful, please report it.)

 
7/19/2004 4:35:53 PMDavid

Excellent work, very clean code and well commented. This is a really good addition to any site needing more text editing options. Thanks for your effort and sharing it with us Kevin!
(If this comment was disrespectful, please report it.)

 
3/29/2005 9:42:46 AM

Hi,
I found a bug in this application and just wonder whether there is a fix for it.

Basically when I cut and paste a paragraph from MS word the RTE does not put the closing tag for bold text at the correct place.


sample text:

This is the line before the highlighted code.
Comment: This is a paragraph after the word comment which has been highlighted. However when this is cut and pasted from MS word to the RTE, the whole paragraph gets highlighted. Is there a fix for this..
To replicate the error please first cut and paste this to MS Word and then highlight the Comment: then cut and paste from WORD to the RTE.
I did try using the demo page as well and same thing happens. Thanks


(If this comment was disrespectful, please report it.)

 
9/13/2005 8:01:40 AMSteven McElrea

Holy crud! Thanks, great code... keep up the good work, 5 globes... :)
(If this comment was disrespectful, please report it.)

 
11/22/2005 5:26:55 AMTerry Remsik

Look great!! But this does not work in Netscape 7.0.. how can i get it to work in this browser?
(If this comment was disrespectful, please report it.)

 
5/12/2006 9:33:07 AMSita

Hi,

Create link,Insert Image events are not working for me.I'm using IE 6.Could you please tell me what could be the reason?I'be unzipped your code and put it in my m/c and using your demo code.
(If this comment was disrespectful, please report it.)

 
5/22/2006 5:34:28 AMArathael Kligg

Really awesome...
(If this comment was disrespectful, please report it.)

 
8/1/2006 1:08:13 AMRA

When we type a line after that hit enter ENTER for next Line it shows 1 line GAP between two typed lines. Can we avoid this?
(If this comment was disrespectful, please report it.)

 
1/9/2007 10:17:37 AMGowrikanth

It is a very good control.And useful for many applications.here i used this control in developing an application where i can cut and copy the content as it is.That means including the font and all.But here a problem is raised that is.....I placed the control on a page.In that page a button is there.When i clicked on the button a new window is opened placing the RTE control in the new window.I was unable to place the control on new window it is placed on the back page when i have RTE control and button.Plz help me regarding this senario.

(If this comment was disrespectful, please report it.)

 
2/17/2007 7:02:38 PMLewis

WOW, Such a great tool for a web-site!
I am a bit new to Javascript and need some quick help...
How can I submit the value from the Text box to a database? I am not sure what value I need to request.
Please help me solve this small piece of a large web-site.
(If this comment was disrespectful, please report it.)

 
6/5/2008 11:19:34 PMsteven

5, good work!
(If this comment was disrespectful, please report it.)

 
9/24/2008 11:58:27 AMtcarroll

It's a great tool, but I'm trying insert flash code and I can't figure out what I need to do to allow it to keep the code. It typically will wipe it out. I'm building an interface for staff to update content and they wanted to add flash script from sites like YouTube. Any help is appreciated.
(If this comment was disrespectful, please report it.)

 
11/17/2008 9:02:37 PMJohn, London (UK)

Kevin's RTE is great. Just what I've been looking for. I attach two really simple ASP examples. //This works fine writeRichText('Content', '

Hi,

MyMessage

', 400, 200, true, false); //This doesn't writeRichText('Content', '

Current Version: 3.09

This code is licensed under a Creative Commons License (as of 5/15/2006).

The Cross-Browser Rich Text Editor (RTE) is based on the functionality introduced in Internet Explorer 5

' , 400, 200, true, false); Could anybody tell me how to pass a multil-line HTML into the KR RTE? Thanks for your help, John (London, UK)
(If this comment was disrespectful, please report it.)

 
3/19/2009 7:15:38 AMRichard Light

Hi,

I bought the source code of this editor a couple of days ago, and so far have received nothing for my money. Since Kevin provides no way of contacting him on his own site, I'm trying here.
(If this comment was disrespectful, please report it.)

 
11/19/2009 7:26:53 AMBharath

The Cross-Browser Rich Text Editor (RTE) is good, but when am click the submit button some extra code is adding in mozilla like rte1 = Bharath

Kothapalli
some extra code And in IE is like this rte1 =

Bharath

Kothapalli

Regards, Bharath
(If this comment was disrespectful, please report it.)

 
7/26/2012 11:44:43 AMPrat

Hi,

I have embedded the demo.cfm into my code and when I open this embedded code in IE9, there'a delay in typing and whats there on screen. Atleast a delay of 5-7 sec(which is a little annoying).

Wanted to know if its compatible with IE9.
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.