...

View Full Version : Rich text editor



azerkoculu
12-29-2006, 03:30 AM
Hello,

How can i create rich text editor with Javascript?

Thanks,
Azer

Philip M
12-29-2006, 08:28 AM
You can't. JavaScript is not remotely suited to this. in any case, why do you want to re-invent the wheel?

_Aerospace_Eng_
12-29-2006, 08:39 AM
Perhaps they are looking for something more along the lines of the post reply box?

http://www.dynamicdrive.com/dynamicindex16/openwysiwyg/index.htm
http://www.dynamicdrive.com/dynamicindex16/richtexteditor/index.htm

Pyth007
12-29-2006, 03:48 PM
Along the lines of Aerospace... I can see two different scenerios.

First one would be where some text gets displayed on a blank html page which includes Rich Text Markup Language (does such a term exists?). The user would then be able to save the page as an .rtf file and open it on their own .rtf-editor application (eg WordPad). This might not work because saving an html page as a file would include its own markup text as well as what gets displayed on the screen for the rich text format.

The second would be to have a WordPad-type text editor embedded in a page, much like the "reply" or "thread" generating editors used in this forum. In this case you'd need to create buttons and drop-downs, connect them to the text area using JS, perhaps create your own markup language that gets parsed to HTML when viewing the post, etc.

Either case sounds like a hefty project. You may have better luck seeing if you can get / purchase a text-editor that has already been generated. For example, this site uses vbulletin:


/*======================================================================*\
|| #################################################################### ||
|| # vBulletin 3.6.4
|| # ---------------------------------------------------------------- # ||
|| # Copyright 2000-2006 Jelsoft Enterprises Ltd. All Rights Reserved. ||
|| # This file may not be redistributed in whole or significant part. # ||
|| # ---------------- VBULLETIN IS NOT FREE SOFTWARE ---------------- # ||
|| # http://www.vbulletin.com | http://www.vbulletin.com/license.html # ||
|| #################################################################### ||
\*======================================================================*/

jkd
01-02-2007, 02:16 AM
Just google for "rich text editor browser" and you'll get tons of results. There are plenty of premade ones if you don't have too specific of requirements.

azerkoculu
01-05-2007, 11:38 PM
Hi again,

I know a lot of scripts, but I don't know how i can create a wysiwyg editor?

Thanks.

azerkoculu
01-06-2007, 12:31 AM
..........................



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum