Page 1 of 2

TinyMCE 4 and XH 1.7.1

Posted: Wed Dec 20, 2017 2:45 pm
by Bob
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

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Dec 20, 2017 3:29 pm
by olape

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Dec 20, 2017 9:09 pm
by Bob
Thx Olape!

For 3/ exact term is "insertdatetime".

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Dec 20, 2017 10:04 pm
by cmb
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.

Re: TinyMCE 4 and XH 1.7.1

Posted: Tue Apr 03, 2018 7:52 pm
by ajvangent
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...

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Apr 04, 2018 11:40 am
by cmb
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.

Re: TinyMCE 4 and XH 1.7.1

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

Where can I put it then?

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Apr 04, 2018 9:35 pm
by cmb
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.

Re: TinyMCE 4 and XH 1.7.1

Posted: Wed Aug 14, 2019 6:35 am
by kurtm
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

Re: TinyMCE 4 and XH 1.7.1

Posted: Sat Aug 17, 2019 12:38 am
by kurtm
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