xoops forums

luciorota

Module Developer
Posted on: 2010/3/23 6:29
luciorota
luciorota (Show more)
Module Developer
Posts: 174
Since: 2007/4/20
#1

Where is CodeMirror class?

Why not create and use a CodeMirror editor class for the new 2.5.0 system module?

Mamba

Moderator
Posted on: 2010/3/23 11:51
Mamba
Mamba (Show more)
Moderator
Posts: 10372
Since: 2004/4/23
#2

Re: Where is CodeMirror class?

It is already used in 2.5.0 as a template editor. See:

htdocs\Modules\System\Js\code_mirror\

luciorota

Module Developer
Posted on: 2010/3/23 12:19
luciorota
luciorota (Show more)
Module Developer
Posts: 174
Since: 2007/4/20
#3

Re: Where is CodeMirror class?

@mamba

yes sir, i know, but why not create an aditor class in /class/xoopseditor/... as any other editor?

it will be useful for all modules...

Mamba

Moderator
Posted on: 2010/3/23 13:16
Mamba
Mamba (Show more)
Moderator
Posts: 10372
Since: 2004/4/23
#4

Re: Where is CodeMirror class?

You can always add CodeMirror as just another editor and publish here for people to download it and use.

Is there anything special needed in 2.5.0 to make it work?

As for the 2.5.0 Team doing it, I think, this wouldn't be high on their priority list, and there is not that much demand for it, or at least I didn't see it so far.

luciorota

Module Developer
Posted on: 2010/3/25 17:22
luciorota
luciorota (Show more)
Module Developer
Posts: 174
Since: 2007/4/20
#5

Re: Where is CodeMirror class?

Done!

On XOOPS repository

http://xoops.svn.sourceforge.net/view ... .gz?view=tar&pathrev=4630

I hope this work will be useful on next XOOPS releases

BUT

I sincerely prefer EDITAREA editor...


Mamba

Moderator
Posted on: 2010/3/30 7:34
Mamba
Mamba (Show more)
Moderator
Posts: 10372
Since: 2004/4/23
#6

Re: Where is CodeMirror class?

Thank you for doing it and sharing it with us!!!!