Connecting Tech Pros Worldwide Forums | Help | Site Map

Verry simple WYSIWYG form field

Arjen
Guest
 
Posts: n/a
#1: Feb 22 '06
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

RobG
Guest
 
Posts: n/a
#2: Feb 23 '06

re: Verry simple WYSIWYG form field


Arjen wrote:[color=blue]
> 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[/color]

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
Closed Thread