471,616 Members | 1,329 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,616 software developers and data experts.

Verry simple WYSIWYG form field

Hi,

Im trying to make / looking for a very very simple WYSIWYG editor. Ive
made a (ad free) site about dogs but it's attracting way more visitors
then I could ever have imagined. I have a forum where users can discuss
all aspects about their dogs.

I wish to enhance the forums form input with a few simple options (bold,
cursive and insert link). Preferably a WYSIWYG edit but ill settle for a
code creator. (where selected text becomes <b>selected text</b> ifter
pressing the 'Bold' button
Im currently struggling to keep my bandwidth below 10 GB/month to keep
costs down. With that in mind Ive encountered some problems finding such
an editor

1. Most are not open source (so I cant remove unwanted options)
2. Most don't work in Firefox
3. Most scripts are too large and consume too much bandwidth (or is
there a way to have users cache them)
4. All scripts ive seen dont work with javascript disabled (duh). What I
mean by this is that a form should still be shown if javascript is
disabled.

Ive been searching for a few days now and still I havent found a good
editor nor a good tutorial. In short; nothing works and im lost !

Can anyone hint me into a direction of what functions to look at or
point me to a good tutorial (relating to this topic in specific) or
better yet point me to a good script.

In the first case, please help me find out how to send a marked piece of
text to a function and then writing it back. Ill figure the rest out
myself :-)

Kind regards

Arjen
Feb 22 '06 #1
1 5058
Arjen wrote:
Hi,

Im trying to make / looking for a very very simple WYSIWYG editor. Ive
made a (ad free) site about dogs but it's attracting way more visitors
then I could ever have imagined. I have a forum where users can discuss
all aspects about their dogs.

I wish to enhance the forums form input with a few simple options (bold,
cursive and insert link). Preferably a WYSIWYG edit but ill settle for a
code creator. (where selected text becomes <b>selected text</b> ifter
pressing the 'Bold' button
Im currently struggling to keep my bandwidth below 10 GB/month to keep
costs down. With that in mind Ive encountered some problems finding such
an editor


Try this:

<URL:http://www.kevinroth.com/rte/demo.htm>

"The cross-browser rich-text editor (RTE) is based on the designMode()
functionality introduced in Internet Explorer 5, and implemented in
Mozilla 1.3+ using the Mozilla Rich Text Editing API. The
cross-browser rich-text editor now includes table support (as of
2/10/2005) as well as an option to generate xhtml-compliant code (as
of 2/24/2005).

"This code is public domain. Redistribution and use of this code, with
or without modification, is permitted."

[...]

"Requires: IE5+/Mozilla 1.3+/Mozilla Firebird/Firefox 0.6.1+/Netscape
7.1+, or any other browser that fully supports designMode() for all
rich-text features to function properly. All other browsers will
display a standard textarea box instead."

--
Rob
Feb 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Martin | last post: by
6 posts views Thread by lb | last post: by
14 posts views Thread by Brandon | last post: by
reply views Thread by 42 | last post: by
5 posts views Thread by charliewest | last post: by
27 posts views Thread by one man army | last post: by
2 posts views Thread by Peter Michaux | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
1 post views Thread by ZEDKYRIE | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.