TinyMCE 4 and XH 1.7.1

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
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: 544
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


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: 12524
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, 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, but not for CMSimple 4+

ajvangent
Posts: 11
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: 12524
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, 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, but not for CMSimple 4+

ajvangent
Posts: 11
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: 12524
Joined: Tue Jun 21, 2011 11:04 am
Location: Mü-Sa, 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, but not for CMSimple 4+

Post Reply