Contribute  :  Support  :  Downloads  :  Forum  :  Links  :  Polls  :  Calendar  :  Directory  :  Advanced Search  
Geeklog The Ultimate Weblog System
Welcome to Geeklog
Friday, May 16 2008 @ 05:55 AM EDT
   

HTML WYSIWYG Editor for Geeklog

Geeklog

I recently ran across a drop in html WYSIWYG editor that works well with Geeklog.  It is free and distributed by interactivetools.com.  It only works with Windows IE 5.5 or better, but degrades to the normal textarea with other browsers.  You can see it in action at gplugs by submitting a story or comment.

It is a full featured editor controlling formating, fonts, colors, images, and tables.  It even has a full screen option.

It is easy to install only requiring a simple addition to a few theme templates.  I have put together a modified package (modified to work with some Geeklog themes) with installation instructions.  You can get it from the gplugs downloads section or directly here.

Enjoy

TomW

Story Options

HTML WYSIWYG Editor for Geeklog | 6 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
HTML WYSIWYG Editor for Geeklog
Authored by: jlhughes on Wednesday, January 01 2003 @ 02:38 PM EST
I've been incorporating HTMLAREA's WYSIWYG into a site where users are very HTML dumb. They are going to love this -- at least those who have MSIE 5.5 or better.

For those who don't, I wanted the site to default to plain text postmode.

Here's how I handle changing the $_CONF[postmode] based on browser type and version.

I've added this code to lib-custom.php


//HACK FOR DETERMINING HTMLAREA COMPATIBILITY
//make user agent into an array
$browser = explode(' ',$HTTP_USER_AGENT);
//Get key for MSIE if in the array
$i = array_search('MSIE',$browser);
//if found MSIE
if ($i > 0)
{
//Get MSIE version, trim trailing ; 
    $browserver = rtrim($browser[$i+1],";");
//check version is at least 5.5
    if (floatval($browserver) >= 5.5)
      $_CONF[postmode]='html';
} ELSE {
      $_CONF[postmode]='plaintext';
}

That's it. Now those users who can use HTMLAREA's features (MSIE v.5.5 or greater) get default HTML and those who will get a vanilla textarea get plain text as default.

NOTE: I have tested this on MSIE v.6 and NETSCAPE 6, both on Windows. I haven't had a chance to check this on other platforms or with MSIE less than 5.5.

HTML WYSIWYG Editor for Geeklog
Authored by: jhk on Monday, May 12 2003 @ 10:55 AM EDT
Looks like you are missing an ELSE for IE < 5.5. Your $_CONF['postmode'] variable doesn't get set in this case.

Cheers,
Jens, grumbling about "IE 5.5 or better" = Mozilla. ;)
HTML WYSIWYG Editor for Geeklog
Authored by: arturs on Saturday, May 20 2006 @ 12:38 PM EDT
so how should this script look like with your addition?
HTML WYSIWYG Editor for Geeklog
Authored by: arturs on Saturday, May 20 2006 @ 12:26 PM EDT
Hi TomW,

i get confused with installing htmlarea.

it says i should change TEXTAREA to appropriate...what?

suppose, i edit comment/commentform.thml
what is then a value for TEXTAREA?

also, the first script is supposed to be between <header></header>.
did you mean <head> ?

thank you.
HTML WYSIWYG Editor for Geeklog
Authored by: Dirk on Saturday, May 20 2006 @ 01:01 PM EDT

Why don't you upgrade to Geeklog 1.4.0 which already comes with an integrated WYSIWYG editor?

bye, Dirk

HTML WYSIWYG Editor for Geeklog
Authored by: arturs on Saturday, May 20 2006 @ 01:56 PM EDT

done.

thank you, Dirk.