TinyMCE 4 and XH 1.7.1

Questions about how to use the online - editors and suggestions how to improve them
Bob
Posts: 120
Joined: Sat Jun 14, 2008 8:30 am
Location: France
Contact:

TinyMCE 4 and XH 1.7.1

Post by Bob » Wed Dec 20, 2017 2:45 pm

Hello,
I'm giving you a little feedback on my use of the TinyMCE 4 editor with CMsimple_XH 1.7.1 (hopefully these problems haven't already been described and I'm not driving open doors). ;)

1/ For each record with the editor, 1 empty line is added in front of the concerned page and 2 empty lines on all other pages! The "content" file therefore grows very quickly.

2/ JS scripts calls are deleted by the editor. Ex:

Code: Select all

<script src="./addons/myscript.js"></script>
Problem that can be solved in "inits" files with the property:

Code: Select all

extended_valid_elements : 'script[language|type|src]'
3/ An error on the call of the "inserttime" button in toolbarX which should be called "insertiontdatetime".
Cheers.
Bob

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

Re: TinyMCE 4 and XH 1.7.1

Post by olape » Wed Dec 20, 2017 3:29 pm

Gruß Olaf, Plugins for CMSimple_XH

Ich habe schon lange den Verdacht, dass so viele so eifrig auf Gender, Trans und Queer machen:
Weil sie für das Fachliche ganz einfach zu doof sind.

Bob
Posts: 120
Joined: Sat Jun 14, 2008 8:30 am
Location: France
Contact:

Re: TinyMCE 4 and XH 1.7.1

Post by Bob » Wed Dec 20, 2017 9:09 pm

Thx Olape!

For 3/ exact term is "insertdatetime".

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

Re: TinyMCE 4 and XH 1.7.1

Post by cmb » Wed Dec 20, 2017 10:04 pm

Bob wrote:2/ JS scripts calls are deleted by the editor
That's TinyMCE's default – I'm not sure if we should change it. There have been some support questions regarding this issue – on the other hand, I presume nonetheless that only few users want to insert JavaScript on a page.
3/ An error on the call of the "inserttime" button in toolbarX which should be called "insertiontdatetime".
Thanks. That's certainly a bug.
Christoph M. Becker – Plugins for CMSimple_XH

ajvangent
Posts: 17
Joined: Thu Dec 31, 2009 4:23 pm

Re: TinyMCE 4 and XH 1.7.1

Post by ajvangent » Tue Apr 03, 2018 7:52 pm

I like to add a 3rd party statistics counter. On the site of the counter it has generated a script that I have to add to the page.

When I do that on the source code of the page, TinyMCE gets rid of the code...

ow can I add external javacode to a page on the site for a stats counter...

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

Re: TinyMCE 4 and XH 1.7.1

Post by cmb » Wed Apr 04, 2018 11:40 am

ajvangent wrote:
Tue Apr 03, 2018 7:52 pm
When I do that on the source code of the page, TinyMCE gets rid of the code...
That is to be expected with the default configuration of TinyMCE. It can be changed, but I suppose it would actually be preferable to insert the script in the template, anyway.
Christoph M. Becker – Plugins for CMSimple_XH

ajvangent
Posts: 17
Joined: Thu Dec 31, 2009 4:23 pm

Re: TinyMCE 4 and XH 1.7.1

Post by ajvangent » Wed Apr 04, 2018 7:04 pm

This is a third party statistics counter with an image to click on to get to the stats.

Where can I put it then?

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

Re: TinyMCE 4 and XH 1.7.1

Post by cmb » Wed Apr 04, 2018 9:35 pm

ajvangent wrote:
Wed Apr 04, 2018 7:04 pm
This is a third party statistics counter with an image to click on to get to the stats.

Where can I put it then?
I neither know the script nor your template, so I can't give exact suggestions, but you may try to put it in your template right before the closing </body> tag. Most likely another place is more suitable, but at least for testing the functionality this should be good.
Christoph M. Becker – Plugins for CMSimple_XH

kurtm
Posts: 50
Joined: Tue Sep 03, 2013 12:29 am
Location: New Zealand

Re: TinyMCE 4 and XH 1.7.1

Post by kurtm » Wed Aug 14, 2019 6:35 am

I recently tried to add an image with advanced functions for mouse-over/mouse-out with a second image, but TinyMCE4 doesn't support this function. There were other useful functions such as image alignment which also seem to have disappeared. In looking at the TinyMCE plugins, there is no replacement for 'advimage'.

Does anyone have a suggestion for mouse-over/mouse-out and alignment functions with images?

Thanks,
Kurt

kurtm
Posts: 50
Joined: Tue Sep 03, 2013 12:29 am
Location: New Zealand

Re: TinyMCE 4 and XH 1.7.1

Post by kurtm » Sat Aug 17, 2019 12:38 am

So I tried the following:
Copied the TinyMCE(3) to the XH 1.7 plugins and deleted TinyMCE4. It looked like everything worked fine. However, the image insert failed because a function was missing within 'filebrowser' plugin. TinyMCE3 requires a file 'editorbrowser.php' which is not included in the XH 1.7 code of 'filebrowser'. Without this file the TinyMCE can not find the folder with the images. It goes to a 404 dead-end.

Your suggestions please.
Thanks,
Kurt

Post Reply