Tinymce4 Filemanager not working?

Questions about how to use the online - editors and suggestions how to improve them
svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Tinymce4 Filemanager not working?

Post by svasti » Mon May 11, 2015 7:00 pm

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.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Tinymce4 Filemanager not working?

Post by cmb » Mon May 11, 2015 8:32 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Tinymce4 Filemanager not working?

Post by svasti » Mon May 11, 2015 9:45 pm

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.

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Tinymce4 Filemanager not working?

Post by cmb » Mon May 11, 2015 10:11 pm

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.
Christoph M. Becker – Plugins for CMSimple_XH

manu
Posts: 1086
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Tinymce4 Filemanager not working?

Post by manu » Tue May 12, 2015 6:56 am

corrected init.php available in the trunk.

svasti
Posts: 1651
Joined: Wed Dec 17, 2008 5:08 pm

Re: Tinymce4 Filemanager not working?

Post by svasti » Tue May 12, 2015 2:31 pm

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

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Tinymce4 Filemanager not working?

Post by cmb » Tue May 12, 2015 4:16 pm

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).
Christoph M. Becker – Plugins for CMSimple_XH

manu
Posts: 1086
Joined: Wed Jun 04, 2008 12:05 pm
Location: St. Gallen - Schweiz
Contact:

Re: Tinymce4 Filemanager not working?

Post by manu » Wed May 13, 2015 6:18 am

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

cmb
Posts: 14225
Joined: Tue Jun 21, 2011 11:04 am
Location: Bingen, RLP, DE
Contact:

Re: Tinymce4 Filemanager not working?

Post by cmb » Wed May 13, 2015 11:24 am

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 .
Christoph M. Becker – Plugins for CMSimple_XH

h-m-g
Posts: 5
Joined: Mon Jun 15, 2015 7:02 am

Re: Tinymce4 Filemanager not working?

Post by h-m-g » Tue Jul 21, 2015 12:55 pm

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

Post Reply