TinyMCE WYSIWYG editor

Creating and modifying plugins.
Post Reply
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

TinyMCE WYSIWYG editor

Post by garvinhicking »

Hello!

Today I've committed a new plugin to our repository called "TinyMCE WYSIWYG editor support". It can only be used with the latest Serendipity SVN version, as new plugin hooks were introduced.

Because of license issues you'll need to download TinyMCE seperately and configure the path to the editor.

This is mostly for the people who always wanted to add their own WYSIWYG editor easily, now you can have a go at it. :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
CapriSkye
Regular
Posts: 119
Joined: Sun Oct 31, 2004 4:42 am
Location: Taiwan
Contact:

Post by CapriSkye »

davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I think I installed correctly but get an error when I try to:
Edit an entry.
-----
Error: tinyMCE is not defined
Source File: http://www.thecockrells.com/blog/serend ... ty[id]=258
Line: 357
-----
Or do a new entry.
-----
Error: tinyMCE is not defined
Source File: http://www.thecockrells.com/blog/serend ... ction]=new
Line: 354
-----
I can live without but would like to figure it out.
thx
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

If you get that, the JS could not be loaded. Most probably you did not configure the path in the tinymce plugin correctly.

Open the HTML source of your edit entry page and look for "<script... src=>" tags. There should be one with the tinymce loading, check if the URL/path is correct?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Even without the plugin, I don't get htmlarea either! I deleted the TinyMCE plugin and tried to use the WYSIWYG editor and don't get the older version either.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Which browser are you using, and how did you delete the plugin?

HTMLarea works only on JS-enabled Mozilla and IE browsers...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I tried both. I had this problem one other time and it was tied to the emoticon toolbar and I removed it a long time ago and just stopped using the wysiwyg editor all together. I just thought the tinymce editor with the imanager addin looked worth trying.
ed

tinymce + imanager

Post by ed »

I try to use the tinymce and imanager plugin.
Althought tinymce working fine, imanager simply refuse to load.
Wether I clik on "Image insert', the tinymce image insertion is loading, not imanager.
Any clue on what I should check ?
I rechecked my config several times, and everything is installed as in the instruction provided in the tinymce plugin.

Thanks
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: tinymce + imanager

Post by garvinhicking »

Did you install imanager into your plugins directory of tinymce and copied the interface editor.js file as described in the imanager documentation?

And did you configure the serendipity plugin to activate imanager?

regards,
garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
ed

Thanks

Post by ed »

My mistake, I didn't fully read the documentation !
Now that I did copy editor.js to the right location, everything running smotth

Thanks !
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I'm trying to get the tinymce editor to work again! If I have it installed and wysiwyg is turned on in the personal settings, should the tinymce entry in the config say false in the db?!
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

can't get it to work either.
0.9 alpha 4 - firefox
just Tiny MCE.

Enter the relative HTTP path to the "tinymce" directory into this plugin configuration.

so it should be /s9y/plugins/serendipity_event_tinymce/tinymce/
but enter into where. the relative path input field. I'm confused.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Could it have anything to do with the Coppermine Selector plugin? Last time I couldn't get the htmlarea to work for my WYSIWYG editor, it was because of the Emoticon chooser plugin. I do have the Coppermine Selector plugin installed and neither htmlarea or tinymce work. Just wondering if it could be related.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

I finally tried it! I removed the Coppermine Selector plugin and TinyMCE works fine now. Just thought someone might want to know...
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

YAY i got it to work path in the field Relative Path should be "/plugins/serendipity_event_tinymce/tinymce/"

:)
thanks garvin. this is oooo much better than htmlarea. I can easily embed my flash in it :)
Oh it makes teh text are dark blue which is my webpage background color.
How can i change it to white.
Post Reply