Tuesday, December 31 2002 @ 10:59 PM EST
Contributed by: tomw
Views: 2,850
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 here 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 downloads section or directly here.
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: anonymous on
Wednesday, January 01 2003 @ 11:43 AM 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.
Authored by: anonymous on
Wednesday, January 01 2003 @ 02:45 PM EST
What a brilliant addition to Geeklog - Just what I have been looking for. Does anyone know how these java scripts could be incorporated into php to make it immediately available to all themes used on the site? This would make future upgrades much easier. Thanks again I'm trying it out on my site now.History and News
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.