Rich Text Editor

JavaScript and client side scripting.

Moderator: General Moderators

User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Rich Text Editor

Post by phppage »

Would anyone know of a good rich text editor that I easily restrict and edit what the user is allowed to do.
I only want the user to add h2 headings, italics and bold text.

Have thought about using the RTE demo at this link http://www.media-axis.co.za/rteHTML/demo.php but it uses u b and i tags in the html rather than style. As I understand it these tags are on the way out? Can shell out a bit of money for source code but my Java knowledge is limited so would need good documentation on how to mod. Will pay about $60 but no hundreds as some are advertise at.

Any help would be greatly appreciated as well as passed experience tips.
Roja
Tutorials Group
Posts: 2692
Joined: Sun Jan 04, 2004 10:30 pm

Re: Rich Text Editor

Post by Roja »

phppage wrote:Would anyone know of a good rich text editor that I easily restrict and edit what the user is allowed to do.
I only want the user to add h2 headings, italics and bold text.
http://www.fckeditor.net/ allows you to enable or disable virtually every item. It is also compatible with the majority of browsers (unfortunately, Safari presents a challenge).
phppage wrote:Have thought about using the RTE demo at this link http://www.media-axis.co.za/rteHTML/demo.php but it uses u b and i tags in the html rather than style. As I understand it these tags are on the way out?
No, those tags are NOT on the way out.

There is, however, an emphasis on using those tags appropriately. Using B for a strong point, for example, is wrong (you should use the strong tag), but if you want your text to be BOLD (where the strength doesnt matter), thats the correct choice. By the way, there isn't even a semantic replacement for U - underline is by definition a presentation element.

Ignoring those issues, if you want to consistently convert u,b, and i tags, you can always run a regex on the input from the rich text editor, converting the tags (b=strong, i=em).
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

I use tinymce by moxiecode. It is web-based... but it will do what you are looking for I believe. You can almost fully control its output (I even made it output valid XHTML).
User avatar
phppage
Forum Contributor
Posts: 126
Joined: Mon Apr 24, 2006 1:47 pm
Location: West Yorkshire, UK

Post by phppage »

Cheers folks will take a look at them both. :D
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Just a note, tinymce does not load in my Opera browsers. Neither does FCKEditor. I think it might have something to do with the way the JavaScripts interact with the browser. Or it could be plain old stupidity on my part.

EDIT | Nooope. It is the browser. For a fun read, skim this thread on the Opera forums. I am with the original poster... the TinyMCE home page clearly has an icon of Opera as a supported browser, and clearly states so on their home page. However, if you search hard enough you find a press release where they say that it only supports Opera 9.0 Preview 1. Seems a little misleading to me, but, oh well. It is still a darn good product at a great price :wink: .
Last edited by RobertGonzalez on Wed Jul 12, 2006 1:03 pm, edited 1 time in total.
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post by Christopher »

I just downloaded the latest TinyMCE and FCKEditor to upgrade a site that was formerly using FCKEditor. As usual I have had a hard time getting FCKEditor to work. It has always seems like FCKEditor is very sensitive to changes in the init code and directory structure. TinyMCE seems like you can hit it with a hammer and still comes up -- and then it is pretty clear the thing you did wrong.

Do others have this same experience? Is there some secret handshake for FCKEditor that once I learn I won't have any more problems? It actually has more features and a nice community around it (hence my previous use).
(#10850)
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

No, you not alone. I have had the same issues. TinyMCE is a clean app. WordPress has even shipped their package with it as their blog editor since 2.0.2. It is an easily extensible app.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

Everah wrote:It is still a darn good product at a great price :wink: .
LOL Free?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

We use TinyMCE. It has quite literally masses of plugins, is easier to install than FCK and does complete WYSIWYG web page creation all in JavaScript. We're using it in an online documentation editor. Had to hack it a bit to allow image uploads since the addvimage plugin just takes a URL but it was easy to do.
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

Avoid the FCKEditor as it doesn't support all browsers.

You might want to check out TinyMCE as it DOES sipport all browsers.

http://tinymce.moxiecode.com/
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

[quote="Everah"]Just a note, tinymce does not load in my Opera browsers. Neither does FCKEditor. I think it might have something to do with the way the JavaScripts interact with the browser. Or it could be plain old stupidity on my part./quote]

Actually you are kind of wrong on that.

If you are using Opera 9 TinyMCE works like a charm but FCKEditor doesn't because FCKEditor purposefully excludes anything Opera. I think the creaters of FCKEditor are Firefox fans and just hate anything to do with Opera.

TinyMCE added Opera Support for Opera 9 back in October of last year and it has supported all Opera 9 builds.
Last edited by AKA Panama Jack on Wed Jul 12, 2006 4:04 pm, edited 1 time in total.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Everah wrote:Just a note, tinymce does not load in my Opera browsers. Neither does FCKEditor. I think it might have something to do with the way the JavaScripts interact with the browser. Or it could be plain old stupidity on my part.

EDIT | Nooope. It is the browser. For a fun read, skim this thread on the Opera forums. I am with the original poster... the TinyMCE home page clearly has an icon of Opera as a supported browser, and clearly states so on their home page. However, if you search hard enough you find a press release where they say that it only supports Opera 9.0 Preview 1. Seems a little misleading to me, but, oh well. It is still a darn good product at a great price :wink: .
AKAPJ, not sure when you posted, but I added in that it does support Opera 9 Preview 1. But that is the only version of Opera it supprts.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

The Ninja Space Goat wrote:
Everah wrote:It is still a darn good product at a great price :wink: .
LOL Free?
I don't know, seems like you can't beat free when it comes to the cost, eh? 8)
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

Nope, I have been testing TinyMCE on all opera Builds and every one of the Opera Builds has worked without a problem.

They have been a little lax in updating their documentation. :D

Tends to happen on Open Source projects.
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I use 8.53 at work. 8.X (something or other) at home. Seeing as I don't have Opera 9, neither of the two work for me.
Post Reply