TinyMCE5 preview plugin

Third Party Plugins to CMSimple - how to install, use and create plugins

Moderator: Tata

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

TinyMCE5 preview plugin

Post by manu » Tue Dec 18, 2018 8:12 pm

TinyMCE5 is in developent. This is good news. After a first sight, the bad news: our filemanager cannot be integrated anymore, as far as I see. For registered users it is possible to use the TinyDrive Cloud Service. For small space and traffic it is free, but to have all my files on a remote server, I don't know if this is a good idea. To follow the progress (and hopefully changes) you can try it out with the preview plugin. Be aware, this is a CDN version and you have to register at tiny.cloud.

olape
Posts: 836
Joined: Fri Mar 13, 2015 8:47 am
Contact:

Re: TinyMCE5 preview plugin

Post by olape » Wed Dec 19, 2018 11:31 am

manu wrote:
Tue Dec 18, 2018 8:12 pm
For small space and traffic it is free, but to have all my files on a remote server, I don't know if this is a good idea.
I don't think that's a good idea. More sources of error, more dependencies, more effort in the data protection declaration.

frase
Posts: 2547
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: TinyMCE5 preview plugin

Post by frase » Wed Dec 19, 2018 11:39 am

Kann man sich nicht alle benötigten Dateien herunterladen und eine "lokale" Version daraus machen?
(Auf die Gefahr hin, dass man nicht immer up to date ist.)

lck
Posts: 1545
Joined: Wed Mar 23, 2011 11:43 am
Contact:

Re: TinyMCE5 preview plugin

Post by lck » Wed Dec 19, 2018 12:32 pm

manu wrote:
Tue Dec 18, 2018 8:12 pm
To follow the progress (and hopefully changes) you can try it out with the preview plugin.
👍
olape wrote:
Wed Dec 19, 2018 11:31 am
manu wrote:
Tue Dec 18, 2018 8:12 pm
For small space and traffic it is free, but to have all my files on a remote server, I don't know if this is a good idea.
I don't think that's a good idea. More sources of error, more dependencies, more effort in the data protection declaration.
+1
frase wrote:
Wed Dec 19, 2018 11:39 am
Kann man sich nicht alle benötigten Dateien herunterladen und eine "lokale" Version daraus machen?
+1
manu wrote:
Tue Dec 18, 2018 8:12 pm
After a first sight, the bad news: our filemanager cannot be integrated anymore, as far as I see.
Das wäre/ist fatal, da auch der Bildupload unter "Einfügen" > Image... > Upload auch nicht funktioniert, zumindest am localhost (online nicht getestet) :? . Da erscheint folgender Fehler.
Error: Could not load url /cmsimplexh172_test-tinymce5/?tinydrive=requesttoken: Internal Server Error (500)
Irgendeine Lösung muss da her, ansonsten ist der Editor eigentlich nicht mehr richtig geeignet für CMSimple_XH.
„Bevor du den Pfeil der Wahrheit abschießt, tauche die Spitze in Honig!“   👉 Ludwig's XH-Templates for MultiPage & OnePage

cmb
Posts: 13170
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: TinyMCE5 preview plugin

Post by cmb » Wed Dec 19, 2018 12:41 pm

frase wrote:
Wed Dec 19, 2018 11:39 am
Kann man sich nicht alle benötigten Dateien herunterladen und eine "lokale" Version daraus machen?
(Auf die Gefahr hin, dass man nicht immer up to date ist.)
Ich denke, dass das schon möglich ist, aber für die Testphase wohl einfach zu aufwendig, da immer wieder Updates ausgeliefert werden müssten.
lck wrote:
Wed Dec 19, 2018 12:32 pm
Irgendeine Lösung muss da her, ansonsten ist der Editor eigentlich nicht mehr richtig geeignet für CMSimple_XH.
Das sehe ich tendenziell auch so. Es geht ja nicht nur um den Standard-Filebrowser, sondern auch um die Alternativen. Aber vielleicht lässt sich ja doch noch was machen.
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 13170
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: TinyMCE5 preview plugin

Post by cmb » Wed Dec 19, 2018 1:30 pm

manu wrote:
Tue Dec 18, 2018 8:12 pm
To follow the progress (and hopefully changes) you can try it out with the preview plugin.
Thanks for working on this!
manu wrote:
Tue Dec 18, 2018 8:12 pm
After a first sight, the bad news: our filemanager cannot be integrated anymore, as far as I see.
Hmm, it seems that the file_browser_callback config option has been removed, but there is a file_picker_callback option, which appears to be similar. See http://fiddle.tinymce.com/U6gaab for a minimal demo.
Christoph M. Becker – Plugins for CMSimple_XH

cmb
Posts: 13170
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, RLP, DE
Contact:

Re: TinyMCE5 preview plugin

Post by cmb » Wed Dec 19, 2018 5:26 pm

“Quick” draft of the Filebrowser integration: https://github.com/manu37/tinymce5/pull/1.
Christoph M. Becker – Plugins for CMSimple_XH

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

Re: TinyMCE5 preview plugin

Post by manu » Thu Dec 20, 2018 10:18 am

cmb wrote:
Wed Dec 19, 2018 5:26 pm
“Quick” draft of the Filebrowser integration: https://github.com/manu37/tinymce5/pull/1.
very nice addition, you're genious!
What is the correct workflow now? I merged your PR into a "re-addon filebrowser" branch. Now I can switch locally to this branch to test. Is there a smoother way to do this?

About the filebrowser window: It appears nice (the dimension have to be adapted). Now the editorhook is missing which should bring back the value of the selected item. Has the editorhook script access to the windoManager callback?

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

Re: TinyMCE5 preview plugin

Post by manu » Thu Dec 20, 2018 10:24 am

frase wrote:
Wed Dec 19, 2018 11:39 am
Kann man sich nicht alle benötigten Dateien herunterladen und eine "lokale" Version daraus machen?
(Auf die Gefahr hin, dass man nicht immer up to date ist.)
geht eigentlich schon. Du kannst Dir hier den Stand herunterladen und ins tinymce Verzeichnis kopieren: https://github.com/tinymce/tinymce/tree/5.x und im config die CDN unckecken. Macht aber im Entwicklungsstadium nicht viel Sinn.

frase
Posts: 2547
Joined: Thu Apr 21, 2016 6:32 am
Location: Saxony
Contact:

Re: TinyMCE5 preview plugin

Post by frase » Thu Dec 20, 2018 10:26 am

manu wrote:
Thu Dec 20, 2018 10:24 am
Du kannst Dir hier den Stand herunterladen und ins tinymce Verzeichnis kopieren: https://github.com/tinymce/tinymce/tree/5.x und im config die CDN unckecken. Macht aber im Entwicklungsstadium nicht viel Sinn.
Ja klar, hat zurzeit wenig Sinn.
Trotzdem danke.

Post Reply