Page 1 of 2

Tinymce4 Filemanager not working?

Posted: Mon May 11, 2015 7:00 pm
by svasti
Just trying out Tinymce4
which is on the whole not bad, actually quite good, with some adjustments to the inits.
Only Filemanager doesn't work as expected:

If you click on Source (Quelle) you don't get the Filemanager but a new window with the headline Filemanager and THE WEBSITE AGAIN!

Tried this a website I am working on with modified Tinymce4
and with a fresh 1.6.6 without any modification on Tinymce4

There seems to be no way to insert an image.

EDIT: Gerade den Fehler gefunden: init.php Zeile36, scheint nicht zu funktionieren. Wenn man Zeile 35 aktiviert und Zeile 36 auskommentiert, funktioniert der Filebrowser wieder.

Re: Tinymce4 Filemanager not working?

Posted: Mon May 11, 2015 8:32 pm
by cmb
svasti wrote:Gerade den Fehler gefunden: init.php Zeile36, scheint nicht zu funktionieren. Wenn man Zeile 35 aktiviert und Zeile 36 auskommentiert, funktioniert der Filebrowser wieder.
Zeile 36 ist schon für XH 1.7 vorbereitet, das eine andere URL erfordert.

Re: Tinymce4 Filemanager not working?

Posted: Mon May 11, 2015 9:45 pm
by svasti
Ui, läuft wohl alles darauf hinaus, dass das der Standardeditor wird... da möchte ich aber vorher dringend ein paar Änderungen anmelden. Wäre schön gewesen, wenn der Editor selbständig erkennt, unter welcher XH-Version er arbeitet und entsprechend den Link zur Filebrowser setzt.

Re: Tinymce4 Filemanager not working?

Posted: Mon May 11, 2015 10:11 pm
by cmb
svasti wrote:Ui, läuft wohl alles darauf hinaus, dass das der Standardeditor wird...
Entweder der TinyMCE 4 oder der CKEditor. Der TinyMCE 3 wird schon lange nicht mehr weiter entwickelt, und nicht mal problematische Bugs werden noch angegangen, so dass wir selbst nachbessern mussten. Und andere Alternativen sehe ich nicht. Ich setze das mal auf die Roadmap, damit es nicht vergessen wird. Darüber abstimmen können wir später noch, denke ich – bis dahin wissen wir vielleicht mehr, wie sich die beiden Editoren entwickeln.
svasti wrote:da möchte ich aber vorher dringend ein paar Änderungen anmelden.
Ja auf dann. Am besten im eigenen Thread in OD. :)
svasti wrote:Wäre schön gewesen, wenn der Editor selbständig erkennt, unter welcher XH-Version er arbeitet und entsprechend den Link zur Filebrowser setzt.
Oder zumindest ein Hinweis in einem Readme, oder so. Wie ich gerade feststelle, wird das TinyMCE 4 Plugin doch gar nicht mal selten herunter geladen, und vermutlich verwenden oder testen es die meisten unter aktuellen XH Versionen.

Re: Tinymce4 Filemanager not working?

Posted: Tue May 12, 2015 6:56 am
by manu
corrected init.php available in the trunk.

Re: Tinymce4 Filemanager not working?

Posted: Tue May 12, 2015 2:31 pm
by svasti
On PHP 5.2:
Parse error: syntax error, unexpected T_STRING in /mnt/webl/d1/68/5646768/htdocs/divyayoga/plugins/tinymce4/index.php on line 24
Parse error: syntax error, unexpected ':' in /mnt/webl/d1/68/5646768/htdocs/divyayoga/plugins/tinymce4/index.php on line 39
PHP-Manual wrote:Note:
The goto operator is available as of PHP 5.3.
Wondering why the goto would be necessary

Re: Tinymce4 Filemanager not working?

Posted: Tue May 12, 2015 4:16 pm
by cmb
I just wanted to suggest to use PHP CompatInfo to check for such issues, but noticed that the goto keyword is not yet checked. Nonetheless using PHP CompatInfo appears to be helpful, and since version 4 it's very easy to use (no need for phpcompatinfo.json).

Re: Tinymce4 Filemanager not working?

Posted: Wed May 13, 2015 6:18 am
by manu
svasti wrote:On PHP 5.2:
Parse error: syntax error, unexpected T_STRING in /mnt/webl/d1/68/5646768/htdocs/divyayoga/plugins/tinymce4/index.php on line 24
Parse error: syntax error, unexpected ':' in /mnt/webl/d1/68/5646768/htdocs/divyayoga/plugins/tinymce4/index.php on line 39
PHP-Manual wrote:Note:
The goto operator is available as of PHP 5.3.
Wondering why the goto would be necessary
Sorry for the inconvenience. I didn't realize that an old fashioned goto/label was just invented in php5.3. I use it to get around the CMSIMPLE_XH_VERSION = '@CMSIMPLE_XH_VERSION@' constant in development environment. Normally for production I just comment out the goto command. Does anybody have another idea to handle this?
cmb wrote:I just wanted to suggest to use PHP CompatInfo...
Christoph, do you have a quick step advice how to integrate this in our development environment? A nice addition to the test suites.
regards
manu

Re: Tinymce4 Filemanager not working?

Posted: Wed May 13, 2015 11:24 am
by cmb
manu wrote:I use it to get around the CMSIMPLE_XH_VERSION = '@CMSIMPLE_XH_VERSION@' constant in development environment. Normally for production I just comment out the goto command. Does anybody have another idea to handle this?
Perhaps it's best to rewrite that if statement:

Code: Select all

if ( CMSIMPLE_XH_VERSION !== '@CMSIMPLE_XH_VERSION@' ) {
    // further version checks
} 
manu wrote:Christoph, do you have a quick step advice how to integrate this in our development environment? A nice addition to the test suites.
Well, it is already integrated (`phing compat`) and checks the core and the internal plugins. However, to simply check a folder (including all subfolders), since PHP_CI 4 you can just put a copy of phpcompatinfo.phar into this folder, and run

Code: Select all

php phpcompatinfo.phar analyser:run .

Re: Tinymce4 Filemanager not working?

Posted: Tue Jul 21, 2015 12:55 pm
by h-m-g
svasti wrote: EDIT: Gerade den Fehler gefunden: init.php Zeile36, scheint nicht zu funktionieren. Wenn man Zeile 35 aktiviert und Zeile 36 auskommentiert, funktioniert der Filebrowser wieder.
Toll, Mann! Ich habe fast 2 Tage herumprobiert damit, bis ich hier auf deine Lösung gestoßen bin. Besten Dank dafür :D