XoopsCore25 icon indicating copy to clipboard operation
XoopsCore25 copied to clipboard

Add TinyMCE5

Open GregMage opened this issue 5 years ago • 7 comments

it would be great to add the latest version of tinyeditor!

I started work here: https://github.com/GregMage/tinymce5

I can't get xoops plugins to work. I don't know javascript. Anyone interested in contributing?

GregMage avatar Jun 22 '20 07:06 GregMage

We already have the XOOPS Editors collection: https://github.com/XoopsModules25x/xoopseditors

I've added them to my fork, incl. one with Bootstrap options

https://github.com/mambax7/xoopseditors/tree/master/htdocs/class/xoopseditor

but the same as you, I don't know much JavaScript, so I couldn't get them to work, and that's why I didn't push them up to https://github.com/XoopsModules25x/xoopseditors

@alain01 was going to look into the TinyMCE 4 and 5, but I don't know how far he was able to get...

mambax7 avatar Jun 22 '20 07:06 mambax7

I 've worked on it but have some little troubles, I gave my work to @GregMage. Some other devs will help, for sure !

alain01 avatar Jun 22 '20 07:06 alain01

the work is progressing, I have a problem integrating the css with the xswatch4 theme. The css file can be in several files, how to include the correct one?

GregMage avatar Jun 22 '20 21:06 GregMage

On every css-xxxxx directory. The simple "css" directory exists for compatibility with the theme before the "21 themes in 1 theme" but it doesnt use now.

alain01 avatar Jun 23 '20 07:06 alain01

That's what I said, how to integrate all the css files used?

GregMage avatar Jun 23 '20 08:06 GregMage

I suggest adding a "tinymce.css" file at the root of the theme. with the following content: @import url(css-cerulean/bootstrap.min.css); @import url(style.css);

We add the files we want to include in tinymce. The tinymce.css file is read by the plugin and integrated.

I find this solution the simplest, what do you think?

GregMage avatar Jun 23 '20 20:06 GregMage

I will find it great to offer this version for xoops 2.5.11. Do you agree?

I updated to version 5.4.2.

https://github.com/GregMage/tinymce5

I have problems listed here:

https://github.com/GregMage/tinymce5/issues

I can't seem to fix these problems and if you agree to help me :-)

GregMage avatar Sep 21 '20 13:09 GregMage

Resolved in https://github.com/XOOPS/XoopsCore25/pull/1053

mambax7 avatar Dec 18 '22 18:12 mambax7