1
alain01
How to add a new editor for XOOPS ?
  • 2013/5/22 8:44

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Hi,

I'm working on new editor for XOOPS,

but i don't know how to add this editor to the choice list, in preferences for blocs, modules and news editor.


I 've yet add (working...) the editor here : /class/xoopseditor,
but how see the new editor in the list editor ? Should i modify another file, in a php file, or/and in the sql base ?

I found this in the sql base :
Table config
blocks_editor _MI_SYSTEM_PREFERENCE_BLOCKS_EDITOR tinymce _MI_SYSTEM_PREFERENCE_BLOCKS_EDITOR_DSC
comments_editor _MI_SYSTEM_PREFERENCE_COMMENTS_EDITOR dhtmltextarea _MI_SYSTEM_PREFERENCE_COMMENTS_EDITOR_DSC
general_editor _MI_SYSTEM_PREFERENCE_GENERAL_EDITOR dhtmltextarea _MI_SYSTEM_PREFERENCE_GENERAL_EDITOR_DSC


Table configoption
confop_id     confop_name     confop_value     conf_id
37        tinymce        tinymce        126
40        tinymce        tinymce        127
43        tinymce        tinymce        128


Thanks to developpers to help me.

Sure, my work is for the community, when it will be all ok..., not "just for me".

2
jlm69
Re: How to add a new editor for XOOPS ?
  • 2013/5/22 10:33

  • jlm69

  • Module Developer

  • Posts: 719

  • Since: 2002/7/19


All you should need to do is add the editor to XoopsRoot/class/xoopseditor

Then update the system module, then update any module that uses the editors.

John

3
alain01
Re: How to add a new editor for XOOPS ?
  • 2013/5/22 11:18

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Yeeeeeeessssss, thanks a lot, jlm69
so easy, why i didn't think about that !

Now, i can continue my integration and test on XOOPS.

4
Mamba
Re: How to add a new editor for XOOPS ?
  • 2013/5/26 11:25

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


We need to thank Alain for working on providing the upcoming version of TinyMCE 4.0 on XOOPS!

I did some work on it, but didn't finish (you can check out the version based on Tiny MCE 4.0b3 from XOOPS SVN or download from here), but since Alain is working on it, I shared my version with him, so he can merge it with his version, and improve it.

The nice thing is that once TinyMCE 4.0 Final is released, we should have a working version right after that

This is just a good example of sharing code between XOOPS members, where we can work together, and leverage each other's efforts.

Thank you Alain again for your continues support of XOOPS!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

5
alain01
Re: How to add a new editor for XOOPS ?
  • 2013/5/27 7:47

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


I m developping a very very different integration :

you created a new directory "tinymce4",
I created a new directory "tinymce_v4"

Ok, joke.

Now i would bring a new customization,
i want to offers 3 differents level for the toolbox.

- Simple toolbox
- Intermediate toolbox
- Full toolbox

The idea is to get 3 choices for the webmaster, using pre-created toolbox, without to need to modify the file (like a hack) "setting.php"

So now my question...

I want to add a new option for tinymce4,
so, is it possible to add, on left from le list of editors, for tinymce4, 3 radio buttons (simple / intermediate / full toolbox) ?

Thanks

6
Mamba
Re: How to add a new editor for XOOPS ?
  • 2013/5/27 8:49

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


I think, you should be able to add three buttons to the top Toolbar, and then set active/inactive the other toolbars with:

http://www.tinymce.com/wiki.php/API3:method.tinymce.ui.Toolbar.setActive
http://www.tinymce.com/wiki.php/API3:method.tinymce.ui.Toolbar.setDisabled
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

7
alain01
Re: How to add a new editor for XOOPS ?
  • 2013/5/27 8:55

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


Humm,
but i dont want that the users changes that, just the webmaster.

I mean that for a site with novice writters, the webmaster would configure tinymce4 with simple toolbox,

for a web site with pro writters, the webmaster configured tinymce4 for full toolbox.


U think it's a good choice to let the users change the toolbar level ?
Why not ...

8
Mamba
Re: How to add a new editor for XOOPS ?
  • 2013/5/27 9:50

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Quote:
but i dont want that the users changes that, just the webmaster.

You can probably do that by checking if the user is Admin, and show these buttons only to Admin.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

9
alain01
Re: How to add a new editor for XOOPS ?
  • 2013/5/28 11:55

  • alain01

  • Just can't stay away

  • Posts: 528

  • Since: 2003/6/20


ok i understand what you mean,
but i want that the webmaster could fixe the level interface.

But ok...,let's continue... ^^

I've just included a great plugin for manage file (link, image, media).
It works but i've some question about ACL (rights).

See discussion here...

10
Mamba
Re: How to add a new editor for XOOPS ?
  • 2013/5/28 13:30

  • Mamba

  • Moderator

  • Posts: 11366

  • Since: 2004/4/23


Check out elFinder for TinyMCE

There is module xelFinder based on elFinder that works on XOOPS:
https://github.com/nao-pon/xelfinder

It would be nice to have TinyMCE working with it.

And xelFinder would take care of the Admin permissions, so you wouldn't have to worry about it anymore.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Login

Who's Online

146 user(s) are online (108 user(s) are browsing Support Forums)


Members: 0


Guests: 146


more...

Donat-O-Meter

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

Latest GitHub Commits