PHP Classes

WYSIWYG editor

Recommend this page to a friend!

      AJAX Edit In Place  >  All threads  >  WYSIWYG editor  >  (Un) Subscribe thread alerts  
Subject:WYSIWYG editor
Summary:How to implement a WYSIWYG editor?
Messages:5
Author:Maarten Brands
Date:2006-01-22 16:02:31
Update:2006-06-07 13:06:17
 

  1. WYSIWYG editor   Reply   Report abuse  
Picture of Maarten Brands Maarten Brands - 2006-01-22 16:02:31
Hello,

Could someone help me? I'm busy with AJAX edit in place, but I can't implement a WYSIWYG editor. Does someone know?

Greetz Maarten Brands

  2. Re: WYSIWYG editor   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2006-01-22 16:56:49 - In reply to message 1 from Maarten Brands
Hi Greetz,

Well as you must have noticed...the text that is edited in inside a <div> tag.

The WYSIWYG Editors usualy use a big textarea/iframe which is editable.
To implement this, all you need to do is display the output (div) inside the editable area. (To get an idea check out... FCK Editor)


Best regards
Rochak Chauhan.

  3. Re: WYSIWYG editor   Reply   Report abuse  
Picture of Dino Korah Dino Korah - 2006-01-29 10:13:18 - In reply to message 1 from Maarten Brands

  4. Re: WYSIWYG editor   Reply   Report abuse  
Picture of Kaurov Eugene Kaurov Eugene - 2006-03-13 22:52:25 - In reply to message 2 from Er. Rochak Chauhan
But if you'll put <div> inside wysiwyg area you have to show editor all time.

It's better to show small preview text and "click here" link. When you'll click -- Edit_in_palce have to load wysiwyg editor with full text. When you'll finish your editing, you may submit form and editor have ho hide (with saving text changes).


It's really needful in CMS, when you have to browse and edit site's pages (it's may be large). In described approach you will download just a little pagenames (or short text) list and really edited page.


How to do this? For FCK? For SPAW?
I hope to release it for Wysarea.

  5. Re: WYSIWYG editor   Reply   Report abuse  
Picture of michalski luc michalski luc - 2006-06-07 13:06:17 - In reply to message 1 from Maarten Brands
Hi,

I tried to modify the script in order to integrate a DHTML editor ( htmlarea 3.0 ) but there are still warning messages...

Here is the test file, maybe you will find the solution and can share it with us :)

michalski-conseils.com/test.zip

Maybe somebody have a solution for fckeditor ?

The best thing, would be to choose between a classic textarea and an enhanced textarea...

It seems to be possible :)

Cheers
Michalski Luc