Latest TinyMCE plugin version for Frog
|
Aug 2, 2008 09:47
458 posts
|
Thought I'd start a new thread for post v1.0.0 releases of the TinyMCE plugin. I realize it's kind of quick after the 1.0 release, but I thought I'd throw it in anyway. The older release is also still available. Would someone care to test the new dropdown box containing the Frog pages in PUBLISHED state? Just create a link as you would normally, but instead of typing in the URL, just use the dropdown box. Please report any problems here... thanks. Download it as usual from http://www.vanderkleijn.net/frog-cms/plugins/tinymce.html v1.1.0 - Added dropdown in-frog pages selector for easy linking. The dropdown currently only shows PUBLISHED pages, when desired, I can add HIDDEN or even all aswell. (You could also edit the SQL yourself, it's in lists/pages_list.php) Added small performance tweak to tiny_init.js based on TinyMCE website (button_tile_map : true) Updated to the latest TinyMCE version (from 3.0.5 to 3.1.0.1) |
|
Aug 4, 2008 05:25
458 posts
|
I'm on a roll... :-) Version 1.2.0 of the TinyMCE plugin adds a beauthifull preferences panel into the Frog admin section. The most important bits of configuration can now be done from within Frog! |
|
Aug 4, 2008 05:49
963 posts
|
You are on a roll! I decided to try the latest in my 0.9.2 localhost Frog install. I followed the instructions for "upgrading" from your helpful Any thoughts? I don't have anything unusual set in this installation. I tried disabling Markdown and Textile, but it didn't make any difference. I also uninstalled (and the TinyMCE tab disappeared) and re-installed, but behaviour was the same.... ;( |
|
Aug 4, 2008 06:13
963 posts
|
Ahhh... That's your "jocular prose"! :)) I went poking around in the I checked the db with phpMyAdmin, though, and the table is there and looks OK to me:
(I hope that works!). So! Puzzling! |
|
Aug 4, 2008 10:57
458 posts
|
Yes, that was my "jocular prose" :-) The "something is terribly wrong" message only appears if the database table for the plugin appears to be present but the plugin was not able to connect to the database to retrieve information from the table. Either it couldn't connect or the SQL statements didn't produce a result. For my and Bdesign it was working fine, so I released it. Are you using MySQL? What version? Are there any errors in the apache logfiles? Does the plugin work if you ignore the message? Does the message appear only once or consistently each time you go to the TinyMCE tab? |
|
Aug 4, 2008 11:29
963 posts
|
Well, the table was created fine but ... after that ...? Here are the trouble-shooting Questions/Answers:
Error Message examples:
|
|
Aug 4, 2008 11:41
458 posts
|
You're not running Frog under /, did you update the urlToFrog setting in tinymce.js. You probably also need to check the paths in tinymce_init.js Does the rest of Frog work? Those last few lines don't seem to be related to the plugin... (do you have googletalk? mine's martijn dot niji at ...) |
|
Aug 4, 2008 13:44
458 posts
|
Figured out David's problem. I removed a check in the plugin. Also please remember to correct the paths in the tiny_init.js and tinymce.js files as described in the readme if your Frog doesn't live under http://www.something.com/ Most interesting in version 1.2.0 is the fact that tinymce displays a dropdown list of links to Frog pages available to link to when you want to create a link... try it out... 1) edit a page 2) select a bit of text 3) click on the "create link" icon in the tinymce bar (looks like a chain link) 4) in the popup that displays, click on the dropdown list "Link list" 5) select any PUBLISHED or even HIDDEN page from Frog to link to (depending on your settings in the tinymce preference tab in Frog) |
|
Aug 4, 2008 14:27
963 posts
|
Thanks to mvdkleijn for all the work he has put into this plugin! Great addition for Frog. Even for thick users who don't correct paths properly. :) |
|
Aug 6, 2008 12:58
277 posts
|
Works like a charm. Thanks Mvdkleijn. |
|
Aug 10, 2008 06:59
458 posts
|
Anyone annoyed by the fact that the TinyMCE didn't support the "filter" dropdown box? That's right, I'm speaking in past tense... ;-) I'm looking for one or two beta testers to make sure I didn't break anything even though it works on my system. :-) Volunteers can reach me through my GTalk account martijn dot niji at gmail dot com (I DON'T use gmail!) |
|
Aug 10, 2008 10:23
38 posts
|
I mvdkleijn, I hacked your plugin to support the filter dropdown too. It's not a really nice solution but it work. If I have time, I will write a forum post and put some ideas to improve the javascript frog Plugin API. All the cool job is done in javascript:
and I use the mvdkleijn, what is your solution, I'm interested! (I don't like IM messager and prefer email, sorry :)) |
|
Aug 10, 2008 16:59
458 posts
|
@gido - too bad you weren't there when I asked help with this.... Anyway, my solution consists of just two lines of code in essence. Look at the code if you want details. As for the changes in the Frog plugin API, I've already requested/suggested the necessary changes to Philippe. The first change I've suggested is a new function to be executed from the index.php file. Basically it's
This would allow plugin developers to add as many javascript files as they need in the order they need without weird workarounds. This would have helped immensely with the TinyMCE plugin. Second I prefer a more simplistic method to "hacking" the onchange event. I favor a Frog function call that would allow a plugin developer to add a custom function to the onchange event through PHP instead of giving that task it to the client's browser through some other means of any kind. On another note directed partially towards Philippe when he's reading this - I think we need to lessen Frog's reliance on Javascript. I strongly feel that Frog still needs to work when javascript is turned off. Which it currently doesn't. This would also be more consistent with the "keep it simple" approach that currently drives Frog development. At least in my opinion. Lastly, both BDesign and David have done some testing. The new release seems to work fine. Download it from: http://www.vanderkleijn.net/frog-cms/plugins/tinymce.html |
|
Aug 11, 2008 04:13
38 posts
|
Okay, you ''override'' the You are right, it would be fine to have a custom function to the onchange event. |
|
Aug 11, 2008 08:09
390 posts
|
Ok I note that !! can't told you when I will find a way to do this, but I will take a try as soon as I can !! |
|
Aug 11, 2008 09:43
458 posts
|
@gido - yeah... too bad javascript doesn't do real overriding :-( @philippe - I'm a bit stretched for time myself, but if I get the change, I'll have a go at creating the addJavascript() function since I think this is a bit of a must-have for several plugins. (mental note: adds todo item to huge pile of todo items ;-) ) |
|
Aug 14, 2008 09:02
55 posts
|
When create link links whith Russian language titles represented as ???? ???. Convert TinyMCE templates to UTF-8!!!! |
|
Aug 14, 2008 12:19
458 posts
|
I've been looking at the TinyMCE site, but I get the impression that UTF-8 support is still (partially) an open issue.... Unless you have found a solution? :-) |
|
Aug 15, 2008 04:38
55 posts
|
Possibly I will do Fckeditor plugin... |
|
Aug 15, 2008 04:50
458 posts
|
@jMas - You do realize that the TinyMCE plugin's configuration is only meant to give you a nice default? You can alter anything you want on TinyMCE by simply editing the tiny_init.js file. About your problem, do you have an online example I might be able to see? |
|
Aug 15, 2008 09:01
55 posts
|
@mvdkleijn, I use TinyMCE & FCKEditor... I think thet FCK more correct... No, is not a working online eample, but see screenshot. Frog CMS 0.9.3 (svn r161), TiniMCE plugin v1.3.0. Next problem: not saved plugin configuration. |
|
Aug 15, 2008 09:04
55 posts
|
Plus I think that URL with "http://site.com/" not true, because site can have 2 domains. |
|
Aug 15, 2008 09:47
458 posts
|
@jMas - I will look at your UTF-8 problem in more detail this weekend, but I can't guarantee anything... if it's a problem with TinyMCE itself, you'll have to talk to the TinyMCE people, not me. Sorry. Now... what do you mean with the remark: "Next problem: not saved plugin configuration." I'm using 1.3.0 myself and have had no problems, I've also asked a couple of people to test it and they also didn't have any problems... Is this a problem with your TinyMCE plugin or with Frog itself? As for your last post... Frog is linked to a single base URL. TinyMCE uses the same base URL. Just in case you or anyone missed it: I know TinyMCE isn't perfect, but clients asked for it and I provided it. I'm not here to provide support for TinyMCE though I'm happy to provide support for the Frog plugin. |
|
Aug 15, 2008 10:09
38 posts
|
Have a look if it is not because the db connection not use UTF-8. Try to execute this sql query before generating the pages links list:
|
|
Aug 18, 2008 03:21
55 posts
|
Thanks. I will write if I will have more serious problems. |