Adding WYSIWYG editor.

Post custom hacks and enhancements for phpwcms here only. Maybe some of these things will be included in official release later.
Post Reply
Harry
Posts: 8
Joined: Sat 29. May 2004, 00:47

Adding WYSIWYG editor.

Post by Harry »

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:

Code: Select all

$phpwcms["wysiwyg_editor"]    = 5;
And then i added this to include/inc_tmpl/article.new.tmpl.php:

Code: Select all

        case 5: include(PHPWCMS_ROOT."/include/inc_ext/tinymc/tinymce.editor.inc.php") ;
                echo "YAH YAH YAH!";
                break;
And also this above the 'switch' statement:

Code: Select all

    echo "<h1>" . $_SESSION["wysiwyg_editor"] . "</h1>";
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
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

Last edited by spirelli on Tue 3. Aug 2004, 02:39, edited 1 time in total.
spirelli
Posts: 996
Joined: Tue 27. Jul 2004, 13:37
Location: London

Post by spirelli »

Yes, I'd be interested in adding this as well. Anyone can help with this?
What about includeing this with phpwcms as a more simple stripped down editor?
Post Reply