11
MACTEP
Re: TinyMCE v4 pour XOOPS
  • 2014/3/22 11:09

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


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

12
andrey3761
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!

13
Mamba
Re: TinyMCE v4 pour XOOPS
  • 2014/3/23 3:49

  • Mamba

  • Moderator

  • Posts: 11413

  • Since: 2004/4/23


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.11 | Docs | Modules | Bugs

14
MACTEP
Re: TinyMCE v4 pour XOOPS
  • 2014/3/23 13:12

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


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





15
Mamba
Re: TinyMCE v4 pour XOOPS
  • 2014/3/23 13:37

  • Mamba

  • Moderator

  • Posts: 11413

  • Since: 2004/4/23


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/tinymce4/external_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.11 | Docs | Modules | Bugs

16
alain01
Re: TinyMCE v4 pour XOOPS
  • 2014/3/23 15:40

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


Mamba, i know the trouble...

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

17
alain01
Re: TinyMCE v4 pour XOOPS
  • 2014/3/25 0:42

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


- 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

18
Mamba
Re: TinyMCE v4 pour XOOPS
  • 2014/3/25 5:17

  • Mamba

  • Moderator

  • Posts: 11413

  • Since: 2004/4/23


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

19
alain01
Re: TinyMCE v4 pour XOOPS
  • 2014/3/25 11:38

  • alain01

  • Just can't stay away

  • Posts: 536

  • Since: 2003/6/20


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/tinymce4/external_plugins/qrcode/icon.png


Yessssss !
Found the bugs and corrected !!!

20
MACTEP
Re: TinyMCE v4 pour XOOPS
  • 2014/3/26 11:45

  • MACTEP

  • Not too shy to talk

  • Posts: 127

  • Since: 2009/4/4 5


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



Login

Who's Online

136 user(s) are online (96 user(s) are browsing Support Forums)


Members: 0


Guests: 136


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Dec 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits