TinyMCE plugin release 2.0.0 RC1

Feed 33 posts, 12 voices

Avatar
651 posts

I’ve just uploaded an RC1 version of my lastest TinyMC plugin. It is a release candidate so backup the database and directory before installing.

  • Disable the current plugin
  • Replace the entire “tinymce” plugin directory with the new stuff.
  • Enable the new plugin

It should automatically detect the old installation and copy over the old settings to the new system.
No manual configuration of files should be necessary. All the settings can be altered from the settings screen assuming you want to use the default setup I provide. (in terms of activated tinymce buttons, etc.)

Get is here: http://www.vanderkleijn.net/frog-cms/frog-downloads.html

edit: almost forgot… this release requires at minimum Frog version 0.9.5 RC1

 
Avatar
4 posts

My few notes: – Cannot save/update settings. I have to do that manualy in the database. – if I create new page or edit everything is in the middle (but its probably css issue)

Everything else seems working alright. Except image resizing discused here:
http://sourceforge.net/tracker/index.php?func=detail&aid=2373189&group_id=103281&atid=635682

 
Avatar
651 posts

I don’t provide support for tinymce itself.. just the plugin that supplies it for frog.

That said: how are settings not being saved/updated?

  • Do you get an error?
  • Which versions are you using for Frog/PHP/DB?
  • Do you get more information if you turn on DEBUG in config.php?
 
Avatar
651 posts

So far, the TinyMCE plugin release 2.0.0 RC1 has had 32 downloads in total. I have not seen any comments here on the forum to suggest there were any problems apart from xkapr here. (please respond to my questions so I can determine whether your problem is a bug or not)

Am I to assume this version was well-received and has had no bugs so far? ;-)

 
Avatar
7 posts

In general the plugin seems to be very stable. I have only one issue. I don’t know if it is a TinyMCE related. When using TinyMCE with assets plugin enabled it causes assets thumbnails to jump to top of the page, here are the steps to reproduce this:

1: Enable Assets plugin (+image_resize +jquery + jquery ui plugins)
2: Upload some stuff to assets folder from Assets plugin tab
3: Edit one of the pages
4: select TinyMCE as a filter
5: Now press on “Metadata” tab and you should see assets images are jumping to the top of the screen

Most probably the issue is in Assets plugin or it’s dependecies (jquery or jqury ui), but I thought I’ll post it here anyway so we will aware of the problem.

 
Avatar
8 posts

Hi, I am a new Frog user. I downloaded the latest Frog 0.9.5 RC1, then installed TinyMCE plugin release 2.0.0 RC1, and it doesn’t seem to work.

Here is what I did after a fresh install of Frog:
-Extracted ‘tinymce’ plugin to frog/plugins directory
-Went to administration and enabled the plugin
-Updated the plugin settings

After enabling it I got a green message saying everything was installed, but when I try to edit pages I don’t see tinymce, I just see the normal textarea for html/php.

Any thoughts as to what I did wrong?

 
Avatar
8 posts

Nevermind I have no idea what happened.. but it works now lol

 
Avatar
8 posts

I was not selecting it from the filters list :P

 
Avatar
6 posts

Works really well. I used by own TinyMCE config and I’m smitten with it.

I am having problems getting paths right however as I’m testing Frog .9.5 in a sub directory. Is there a trick to it?

Works fine when installed at base level =)

 
Avatar
651 posts

@monkeyb – you can set it as the default filter in frog’s admin section if you want.

@hinch – not that I’m aware of.. My test setup lives in a subdirectory, so that was tested and worked fine. What are the paths you used when you used it with a subdirectory?

 
Avatar
7 posts

There is a small bug in your plugin. This bug is causing image list not to show in TinyMCE.
In lists/image_list.php file the generated javascript is not right, there is no commas between array elements. The issue is in the $first variable assignment. I managed to fix it by adding an else to the if statement in line 18, here is how the if statement looks after the change:

            if (!$first)
                print ',';
            else
                $first = false;
 
Avatar
651 posts

Thanks. Hadn’t noticed that, I had been looking at the javascript output directly. Fixed.

 
Avatar
7 posts

I’ve added your modification to image_list.php, but it is still not show the image list. What else could be the problem?

EDIT: OK, its works fine, I’ve just mispelled the absolute path of the photos directory.

 
Avatar
9 posts

@shamil.si

Did you manage to find what was causing the issue with the assets thumbnails jumping to the top of the page?

Have just installed TinyMCE and assets plugin and experiencing same behavior.

 
Avatar
184 posts

Thanks for the update Martijn. Settings feel more robust now.

 
Avatar
20 posts

Am I only one, who can’t ‘get page list’ and ‘images list’ functions to work?

 
Avatar
24 posts

I can confirm that it gives an error unable to save settings

 
Avatar
651 posts

@joakim – double check the values you entered on the plugin’s settings page.

@defunct – That’s nice… though not very informative. I’ve had no reports of a similar nature though. Can you provide some more info on the problem / your installation? (what DB, version, etc…)

 
Avatar
24 posts

DB: mysql Ver 14.12 Distrib 5.0.67, for debian-linux-gnu (i486) using readline 5.2

Version of Frog: latest SVN
Version of PHP: PHP 5.2.6-2ubuntu4.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Feb 11 2009 20:38:24)

The code that is displaying the error is this: Flash::set('error', 'TinyMCE - '.__('plugin settings not saved!'));

If there is anything else I can give, let me know.

 
Avatar
651 posts
  • Is your php’s PDO support available and activated? / Are you using PDO?
  • Can you verify whether or not the data has actually been saved?
  • Did you try turning on DEBUG in the config.php file?
  • Does the Apache error log for your site give any errors?
 
Avatar
24 posts

It indeed looks like a PDO error, although the error seems to do with pgsql which is odd since I am using mysql. I can confirm it does not save. Any suggestions?

From my apache error log:

[Wed Mar 25 19:08:34 2009] [error] [client 192.168.224.1] PHP Warning: PHP Startup: Unable to load dynamic library '/usr/lib/php5/20060613+lfs/pdo_pgsql.so' - /usr/lib/php5/20060613+lfs/pdo_pgsql.so: cannot open shared object file: No such file or directory in Unknown on line 0, referer: http://carbon/trunk/admin/plugin/tinymce/settings

 
Avatar
20 posts

Martijn, maybe you have an idea, what I am doing wrong. I made a screenshot:

I am running XAMPP on Windows XP, I have tried in my server also, same problem.

 
Avatar
651 posts

@joakim – easy… in the tinymce settings page it says: “Images directory“… now take a look at what you actually entered.

@defunct – This isn’t a problem with the plugin. It seems like PHP is getting confused on your system.

  • Can you check that the value of DB_DSN contains “mysql” in its string in config.php?
  • Also, can you check is PDO support for PGSQL is enabled in your PHP configuration? If so, it shouldn’t since the appropriate .so file(s) don’t seem to be installed.
 
Avatar
20 posts

Yep, this is wrong. I have tried public/images, htdocs/public/images, localhost://public/images, localhost/public/images etc, it still does not work. Is says “Absolute path to images on disk.” – public/images should be the right path. Or am I missing something…

 
Avatar
24 posts

@Martijn Indeed it is mysql in my DB_DSN. I removed the pgsql ini files and I no longer get those errors in my apache log. I have define(‘USE_PDO’, true); in my config. Unfortunately I still cannot save the tiny mce plugin.

I removed and reinstalled PDO/PDO_MYSQL with pear/pecl and still nothing. Any other ideas?