tinymce4 for Version 1.6

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

Moderator: Tata

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

Re: tinymce4 for Version 1.6

Postby manu » Mon Dec 07, 2015 8:05 am

You are right. In the full installed Tinymce4 Version, the CDN Version check is unnecessary.
Your patch will help. I'll correct it in the next version.
regards
manu

utaka
Posts: 51
Joined: Fri Sep 18, 2015 6:00 am
Location: japanese
Contact:

Unexpected character in input: '\' (ASCII=92) state=1

Postby utaka » Sun Apr 24, 2016 5:10 pm

I got an error on my customer's server.

"Unexpected character in input: '\' (ASCII=92) state=1 plugins/tinymce4/admin.php on line 168"

line 168 is "$imgUploader = new Tinymce4\Uploader()"
This problem occurs because not server of PHP5.3 more.
My customer's server PHP is Ver5.1.3..

class/Uploader.php

Code: Select all

namespace Tinymce4;

/**
 * The image uploader controller class.
 *
 * @category CMSimple_XH
 * @package  tinymce4
 */
class Uploader
{

change to

Code: Select all

// namespace Tinymce4; //comment out

/**
 * The image uploader controller class.
 *
 * @category CMSimple_XH
 * @package  tinymce4
 */
class UploaderTinymce //change class name
{


and admin.php about Line168

Code: Select all

function ImageUploader_forEditor()
{
    global $cf;
   
    $imgUploader = new Tinymce4\Uploader();

change to

Code: Select all

function ImageUploader_forEditor()
{
    global $cf;
   
//    $imgUploader = new Tinymce4\Uploader(); // Comment out
    $imgUploader = new UploaderTinymce(); // add New


* I think, It is a good thing to use the namespace, but not even use the namespace.
******************************************************
Japan Site http://cmsimple-jp.org
Twitter Googe+ github
*I English is not a good . I'm sorry...
*Ich habe nicht eine gut Deutsch. Es tut mir leid ...
*Jeg kender ikke dansk
--Powered by Google Translate-----

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

Re: Unexpected character in input: '\' (ASCII=92) state=1

Postby cmb » Mon Apr 25, 2016 11:15 am

utaka wrote:My customer's server PHP is Ver5.1.3..
[…]
* I think, It is a good thing to use the namespace, but not even use the namespace.

Well, that is some kind of general issue. It's not only about namespace, but about (a) a lot of useful features that are offered by recent PHP versions, and (b) about the fact that old PHP versions are no more supported by the PHP developers. With regard to (b), we can't do anything about that, and in my opinion we don't help anybody by supporting really old versions (even PHP 5.3 is no more supported for quite some time). For one thing, that might mean working around existing bugs in those old versions (ugly for developers), and for another, that means running a webserver with known vulnerabilities.

With regard to (a), of course, we could eschew those new features (as has traditionally been done by CMSimple(_XH)), but that means more work or less expressive code, and might easily discourage new developers from joining the development. For what it's worth, I'm having a hard time to constrain myself to features of the last decade.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

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

Re: tinymce4 for Version 1.6

Postby manu » Mon Nov 28, 2016 3:37 pm

A new version is available - eine neue Version ist verfügbar.
  • CDN version modified (new Host, latest version available only).
  • tinyMCE Version 4.5.0 and language files updated
  • "color picker" and "remove style" added
Have fun
manu

mhz
Posts: 479
Joined: Tue Jun 25, 2013 8:46 pm
Location: Heusenstamm
Contact:

Re: tinymce4 for Version 1.6

Postby mhz » Thu Jan 26, 2017 6:56 am

Hallo,
bisher benutzte ich TinyMCE version 3 (revision 5.11). Nun habe ich mir die neueste TinyMCE4.1.2.6 installiert. Ist es möglich, die Icons auch so schön farbig dargestellt zu bekommen, wie in der 3er Version?
Wenn ja, wo / wie ist das zu ändern?
Michael Zajusch (mhz)-- Mein Tutorial für CMSimple_XH. Früher

Tata
Posts: 2415
Joined: Tue May 20, 2008 5:34 am
Location: Slovakia
Contact:

Re: tinymce4 for Version 1.6

Postby Tata » Thu Jan 26, 2017 8:19 am

In älteren Versionen waren die Ikonen z.B. in \plugins\tinymce\tiny_mce\themes\advanced\img\icons.gif
Man muss versuchen,ob es genügt diese Dateien (für andere Themen auch) zu ersetzen.
CMSimple.sk
It's no shame to ask for an answer if all efforts failed.
But it's awful to ask without any effort to find the answer yourself.

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

Re: tinymce4 for Version 1.6

Postby cmb » Thu Jan 26, 2017 11:25 am

mhz wrote:bisher benutzte ich TinyMCE version 3 (revision 5.11). Nun habe ich mir die neueste TinyMCE4.1.2.6 installiert. Ist es möglich, die Icons auch so schön farbig dargestellt zu bekommen, wie in der 3er Version?

Wenn mich meine Erinnerung nicht trügt, dann verwendet der TinyMCE 4 eine Icon-Font, so dass eine Anpassung nicht trivial sein dürfte. Eventuell gibt es aber bereits fertige alternative Styles.
Christoph M. Becker –Plugins for CMSimple_XH, but not for CMSimple 4+

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

Re: tinymce4 for Version 1.6

Postby manu » Fri Feb 03, 2017 5:07 pm

If anybody has problems with usage of tinymce4 in the frontend (i.e. Realblog_XH) together with the CDN Version read this.

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

Re: tinymce4 for Version 1.6

Postby manu » Mon Feb 13, 2017 4:36 pm

A new tinymce4 1.2.7 version is available on sourceforge which includes the actual tinymce 4.5.3 and all language files. The code resides newly on Github, the .zip files remain on Sourcefourge for download.
See the release notes.
If you want to be up to date all the time consider to choose the CDN Version which draw its tinymce from a Content Delivery Network.
regards
manu


Return to “Addons and Plugins”

Who is online

Users browsing this forum: No registered users and 1 guest