xoops forums

MACTEP

Not too shy to talk
Posted on: 2014/3/22 11:09
MACTEP
MACTEP (Show more)
Not too shy to talk
Posts: 127
Since: 2009/4/4 5
#11

Re: TinyMCE v4 pour XOOPS

Works, thanks for the help andrey3761 .
download the plugin
set /class/xoopseditor/tinymce4/external_plugins/ archive folder with codemirror

enable the plugin
/class/xoopseditor/tinymce4/settings.php
"plugins" => add codemirror

Added support for Russian language :)

Resized Image

andrey3761

XOOPS Translator
Posted on: 2014/3/22 13:37
andrey3761
andrey3761 (Show more)
XOOPS Translator
Posts: 234
Since: 2008/8/21
#12

Re: TinyMCE v4 pour XOOPS

Unpack the archive into a folder /class/xoopseditor/tinymce4/external_plugins/

edit the file /class/xoopseditor/tinymce4/tinymce.php
Find the line (326)
$ret .= '"xoops_tagextgal": "'.$chemin_path.'/class/xoopseditor/tinymce4/external_plugins/xoops_tagextgal/plugin.min.js",';

Add afterwards
$ret .= '"codemirror": "'.$chemin_path.'/class/xoopseditor/tinymce4/external_plugins/codemirror/plugin.min.js",';


Find the line (330)
$ret .= '},';

Add afterwards
$ret .= 'codemirror: {
    indentOnInit: true,
    path: "CodeMirror",
    config: {
       mode: "application/x-httpd-php",
       lineNumbers: false
    },
    jsFiles: [
       "mode/clike/clike.js",
       "mode/php/php.js"
    ]
  },'
;


Enjoy!

Mamba

Moderator
Posted on: 2014/3/23 3:49
Mamba
Mamba (Show more)
Moderator
Posts: 10759
Since: 2004/4/23
#13

Re: TinyMCE v4 pour XOOPS

Andrey, thank for posting this - it works very well.

But I have problems with the other icons - they are missing.
I am getting:

GET http://localhost/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png 404 (Not Found)

The icons are there, but the link to them is missing the site's URL
Does anybody experience the same?

Resized Image
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

MACTEP

Not too shy to talk
Posted on: 2014/3/23 13:12
MACTEP
MACTEP (Show more)
Not too shy to talk
Posts: 127
Since: 2009/4/4 5
#14

Re: TinyMCE v4 pour XOOPS

Quote:

Mamba wrote:

But I have problems with the other icons - they are missing.
I am getting:

GET http://localhost/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png 404 (Not Found)

The icons are there, but the link to them is missing the site's URL
Does anybody experience the same?

Resized Image


All icons are displayed .
their address :

/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png
/class/xoopseditor/tinymce4/external_plugins/xoops_quote/img/quote.png
/class/xoopseditor/tinymce4/external_plugins/xoops_code/img/code.png

and loaded later all.
Perhaps, the local server is overloaded and the access time is limited. In the server settings increase the response time.

Resized Image


There is a big minus. You can not add classes by adding images, tables (version 3 was such a possibility)
Who knows how to get the ability to add classes?
Resized Image




Mamba

Moderator
Posted on: 2014/3/23 13:37
Mamba
Mamba (Show more)
Moderator
Posts: 10759
Since: 2004/4/23
#15

Re: TinyMCE v4 pour XOOPS

Quote:
/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png

I saw the link in the sourcecode, but they are not translating into a correct URL, i.e. XOOPS should see them as:

http://localhost/TEST/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png

but the "TEST' is missing, so XOOPS gets:

http://localhost/class/xoopseditor/ti ... l_plugins/qrcode/icon.png

However, all the other icons are visible, so I am just wondering what could be the reason, except that all of them are in the "external_plugin" folder. But then again - the CodeMirror and the Responsive File Manager are working just fine.

Anybody else could test it please?

BTW - I am testing on PHP 5.5.10 and XOOPS 2.5.7 Beta
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

alain01

Quite a regular
Posted on: 2014/3/23 15:40
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#16

Re: TinyMCE v4 pour XOOPS

Mamba, i know the trouble...

it is in the javascript file plugins.
I will replace the code by variables for the next version.

alain01

Quite a regular
Posted on: 2014/3/25 0:42
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#17

Re: TinyMCE v4 pour XOOPS

- Codemirror : implemented, done,
- TinyMCE v4.0.11 to v4.0.20 : implemented, done

- next : responsivefilemanager 9.3 to 9.3.5 , to implement, to do...

Then i will put the news version of TinyMCE4XOOPS on github here

Mamba

Moderator
Posted on: 2014/3/25 5:17
Mamba
Mamba (Show more)
Moderator
Posts: 10759
Since: 2004/4/23
#18

Re: TinyMCE v4 pour XOOPS

Please let me know when it is ready for testing again
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

alain01

Quite a regular
Posted on: 2014/3/25 11:38
alain01
alain01 (Show more)
Quite a regular
Posts: 279
Since: 2003/6/20
#19

Re: TinyMCE v4 pour XOOPS

Quote:

Mamba wrote:
Quote:
/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png

I saw the link in the sourcecode, but they are not translating into a correct URL, i.e. XOOPS should see them as:

http://localhost/TEST/class/xoopseditor/tinymce4/external_plugins/qrcode/icon.png

but the "TEST' is missing, so XOOPS gets:

http://localhost/class/xoopseditor/ti ... l_plugins/qrcode/icon.png


Yessssss !
Found the bugs and corrected !!!

MACTEP

Not too shy to talk
Posted on: 2014/3/26 11:45
MACTEP
MACTEP (Show more)
Not too shy to talk
Posts: 127
Since: 2009/4/4 5
#20

Re: TinyMCE v4 pour XOOPS

If possible, add a class to the images

http://www.tinymce.com/wiki.php/Configuration:image_class_list

Or find a plugin that adds class to any element

And out of science fiction - to make admin-panel for TinyMce