xoops forums

Mamba

Moderator
Posted on: 2012/8/19 19:35
Mamba
Mamba (Show more)
Moderator
Posts: 10817
Since: 2004/4/23
#1

SCEditor: potential replacement for DHTML?

I think, it's time to get rid of DHTML Editor in XOOPS

I saw recently SCEditor and I really like it. SCEditor is designed to be a small, lightweight BBCode and HTML WYSIWYG editor, and therefore it could be a perfect replacement.

Resized Image


I've ported it to XOOPS as an experiment and you can download it from XOOPS SVN

To install it:
a) unzip the /sceditor folder to

/class/xoopseditor/

folder

b) Update your System module, and any module that you plan to use SCEditor (e.g. News).

As long as the particular module doesn't have hardcoded editors, but it's populating its editor list dynamically, you should be able to select now SCEditor in your list.

I have found so far couple of incompatibilities, so we might need some adjustments in the XOOPS Core to make it work properly, but if the feedback from the community is positive, and the Core Team finds the time, then maybe we could have it for Alpha 2 or Alpha 3 available.

For the time being, please download it and test it, and let us know what you think.
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

deka87

Friend of XOOPS
Posted on: 2012/8/20 4:52
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#2

Re: SCEditor: potential replacement for DHTML?

Looks pretty IMO and we surely need to get rid of the DHTML Editor. I would love to see it in the future versions.
Mind anchors

hipoonios

Friend of XOOPS
Posted on: 2012/8/20 6:35
hipoonios
hipoonios (Show more)
Friend of XOOPS
Posts: 298
Since: 2005/9/24
#3

Re: SCEditor: potential replacement for DHTML?

Just perfect. The DHTML editor is too weak and other editors like TinyMCE etc is too advanced.

I hope you can get ride of the small bugs. I want to switch to this editor right now. Does it work on 2.5.5? Or is it for 2.6 only?
I love Xoops!

deka87

Friend of XOOPS
Posted on: 2012/8/20 7:58
deka87
deka87 (Show more)
Friend of XOOPS
Posts: 1124
Since: 2007/10/5
#4

Re: SCEditor: potential replacement for DHTML?

On my websites I use Rheditor portedby xoops.ws team. Still has some minor issues but besides that works just perfect.

Resized Image


You can download it from this page: http://xoops.ws/modules/news/article.php?storyid=56
Mind anchors

Peekay

XOOPS is my life!
Posted on: 2012/8/20 8:58
Peekay
Peekay (Show more)
XOOPS is my life!
Posts: 2335
Since: 2004/11/20
#5

Re: SCEditor: potential replacement for DHTML?

Looks quite neat, but does it have/can it have Xoops image-manager support?. Also, with the current DHTML editor you can paste Javascript or PHP code, which is useful for adding a widget to a block for example.

Whichever editor is used, it would be great if the site webmaster could enable/disable Javascript support and toolbar buttons as prefs instead of hacking away at a config file.

Frankblack's Tinyeditor module was great because it enabled webmasters to present a basic BB code editor or an advanced HTML editor based on groups.
A thread is for life. Not just for Christmas.

Mamba

Moderator
Posted on: 2012/8/20 9:01
Mamba
Mamba (Show more)
Moderator
Posts: 10817
Since: 2004/4/23
#6

Re: SCEditor: potential replacement for DHTML?

@ Hipoonios
Quote:
I hope you can get ride of the small bugs. I want to switch to this editor right now. Does it work on 2.5.5? Or is it for 2.6 only?

It works on 2.5.5, but unfortunately with the same bugs that makes it unusable right now:

- Selecting Color inserts "#" in front of color code (XOOPS doesn't use it)
- Clicking on Preview, XOOPS inserts
<br />
on line breaks

Those issues would have to be fixed either in SCEditor or in XOOPS. The key requirement will be to read error-free existing BBCode content from the database.

@ Peekay
Quote:
Frankblack's Tinyeditor module was great because it enabled webmasters to present a basic BB code editor or an advanced HTML editor based on groups.

TinyMCE has the BBCode plugin, so we could use only TinyMCE, but with two different configurations.

Updating TinyEditor would be another option.

I am glad that we have a discussion on this topic! This is an important issues, as the DHTML editor is outdated, so we need a replacement, but we also need a list of features that should be present in whatever the replacement we select.

Who would like to help with the development?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

Mamba

Moderator
Posted on: 2012/8/20 9:13
Mamba
Mamba (Show more)
Moderator
Posts: 10817
Since: 2004/4/23
#7

Re: SCEditor: potential replacement for DHTML?

Deka,
we already have CLEditor in our list of ported editors.
Do you know what is the difference between what we have and the RHEditor implementation?

But it looks nice in the demo, and it could be another option for DHTML replacement.

I've added it to the list of Editors in XOOPS SVN
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs

panwac

Just popping in
Posted on: 2012/8/20 11:48
panwac
panwac (Show more)
Just popping in
Posts: 62
Since: 2005/11/12
#8

Re: SCEditor: potential replacement for DHTML?

Both of these editors looks fine.

irmtfan

Module Developer
Posted on: 2012/8/21 6:12
irmtfan
irmtfan (Show more)
Module Developer
Posts: 3419
Since: 2003/12/7
#9

Re: SCEditor: potential replacement for DHTML?

Yes, I like them too.
the default DHTML editor should be replaced by a new one but DHTML should be remained as an optional editor for anybody still prefer it.

hipoonios

Friend of XOOPS
Posted on: 2012/9/7 21:41
hipoonios
hipoonios (Show more)
Friend of XOOPS
Posts: 298
Since: 2005/9/24
#10

Re: SCEditor: potential replacement for DHTML?

Installed it and found another bug.

Smilies doesn't working (at least not for me).
I love Xoops!