Adding WYSIWYG editor.
Posted: Sat 29. May 2004, 12:01
Hi!
I'm trying to add the TinyMCE WYSIWYG editor. First off, i decided to give it the number '5' in the config. So i set this:
And then i added this to include/inc_tmpl/article.new.tmpl.php:
And also this above the 'switch' statement:
To check wether it recognizes my new config setting. Now the problem is. Whenever i set it to 1,2,3 etc. it gives fine. But if i in config sets wysiwyg_editor to 5, then it just outputs '0' ?
- Harry
I'm trying to add the TinyMCE WYSIWYG editor. First off, i decided to give it the number '5' in the config. So i set this:
Code: Select all
$phpwcms["wysiwyg_editor"] = 5;
Code: Select all
case 5: include(PHPWCMS_ROOT."/include/inc_ext/tinymc/tinymce.editor.inc.php") ;
echo "YAH YAH YAH!";
break;
Code: Select all
echo "<h1>" . $_SESSION["wysiwyg_editor"] . "</h1>";
- Harry