ElkArte Community

Elk Development => Feature Discussion => Topic started by: emanuele on February 20, 2016, 03:37:41 am

Title: Possible alternative editor(s)
Post by: emanuele on February 20, 2016, 03:37:41 am
More or less a memo topic to remember any possible alternative editor that could be used to replace SCEditor in the case there would be the need to.

https://github.com/yabwe/medium-editor
Title: Re: Possible alternative editor(s)
Post by: Spuds on February 20, 2016, 10:09:01 am
Good topic to have around given recent, or lack of, support / updates to the current one.  Hope Sam at least surfaces to finish 1.5 but he has been essentially absent for a year.
Title: Re: Possible alternative editor(s)
Post by: emanuele on February 20, 2016, 10:45:41 am
Yep, I saw this one this morning at taz on a topic related to the paid one (I don't remember the name) and thought it would be nice to keep track.
The main problem is find one that will be kind of supported and developed "for a while".
This is another one that looks pretty nice http://www.wysibb.com/ but the last commit is July last year.
Title: Re: Possible alternative editor(s)
Post by: kucing on February 20, 2016, 04:11:19 pm
Quote from: emanuele – Yep, I saw this one this morning at taz on a topic related to the paid one (I don't remember the name) and thought it would be nice to keep track.
Redactor (https://imperavi.com/redactor/)? I believe it used on XenForo.
Title: Re: Possible alternative editor(s)
Post by: meetdilip on February 20, 2016, 04:13:22 pm
I already suggested it. I guess @emanuele  prefers not to pack a non open source item with an open source software.
Title: Re: Possible alternative editor(s)
Post by: radu81 on February 20, 2016, 04:13:25 pm
Quote from: emanuele – Yep, I saw this one this morning at taz on a topic related to the paid one (I don't remember the name)
It's Redactor (https://imperavi.com/redactor/)
http://www.elkarte.net/community/index.php?topic=2837.msg19602#msg19602

Quote from: emanuele – This is another one that looks pretty nice http://www.wysibb.com/ but the last commit is July last year.
I use this on SMF for quick reply, it's nice but has some problems with SMF (different bbcode for quotes). There is also an SMF mod
http://custom.simplemachines.org/mods/index.php?mod=3453
Title: Re: Possible alternative editor(s)
Post by: Spuds on February 20, 2016, 05:16:41 pm
Redactor II (current) would cost us ~$1500 to get a license that would allow us to use (and distribute) it in an OS project.

We could use the old Redactor I level (which was OS)  but no one (to my knowledge) has adopted it and is maintaining it, so once again we would be in the position to maintain it and fix problems caused by every new windows and iphone release.

Xenforo can "afford" this luxury since you have to pay for it ;)
Title: Re: Possible alternative editor(s)
Post by: emanuele on February 20, 2016, 06:00:33 pm
Yep, Redactor.
As I posted at TAZ, I don't see the point of using closed code in an open source project (of course addons are welcome! Even though I don't really like XF editor (the undo is not something the editor should take care, but let the OS handle it for example), but "unfortunately" I'm old school :P).

Quote from: radu81 –
Quote from: emanuele – This is another one that looks pretty nice http://www.wysibb.com/ but the last commit is July last year.
I use this on SMF for quick reply, it's nice but has some problems with SMF (different bbcode for quotes).
If it is just quote it's nothing, right Spuds? :P
Title: Re: Possible alternative editor(s)
Post by: Allan on February 20, 2016, 10:04:21 pm
Quote from: emanuele – Yep, I saw this one this morning at taz on a topic related to the paid one (I don't remember the name) and thought it would be nice to keep track.
The main problem is find one that will be kind of supported and developed "for a while".
This is another one that looks pretty nice http://www.wysibb.com/ but the last commit is July last year.
This looks a good alternative. 
Title: Re: Possible alternative editor(s)
Post by: radu81 on February 21, 2016, 02:46:08 pm
What's wrong with the actual editor Sceditor? It works fine for me
Title: Re: Possible alternative editor(s)
Post by: emanuele on February 21, 2016, 03:27:50 pm
Well, better have a plan-b, you never know what could happen. ;)
Title: Re: Possible alternative editor(s)
Post by: Spuds on February 21, 2016, 07:23:05 pm
Quote from: radu81 – What's wrong with the actual editor Sceditor? It works fine for me
Yup it works very well, and I even understand (somewhat) how to write proper plugins for it now :D (I even have split quote working in wizzy mode in 1.1) ....

The main issue is one of support.  Sam, the main developer, has not been around much in the last year.  Even with this absence, the code is more up to date then most of the "other" ones out there ... but like Eman said, good to have a plan just in case.
Title: Re: Possible alternative editor(s)
Post by: Joshua Dickerson on February 21, 2016, 08:11:15 pm
Too bad there's not a good base layer or API for interacting with text in a text box. After that hopefully everyone would use that. Then a general consensus or dare I say "standard" for that for user-generated content software to make use of. It might be worth it reaching out to several editor makers and several users (Wordpress, SMF, phpBB, etc) to work on that.
Title: Re: Possible alternative editor(s)
Post by: kucing on February 22, 2016, 04:54:57 pm
I don't really understand what kind of editor can be used (I'm not a programmer) but I find ProseMirror today: https://github.com/ProseMirror/prosemirror from today discussion on HN: https://news.ycombinator.com/item?id=11153757
Title: Re: Possible alternative editor(s)
Post by: emanuele on February 22, 2016, 05:29:08 pm
Quote from: Joshua Dickerson – Too bad there's not a good base layer or API for interacting with text in a text box.
I feel like this is what contenteditable is for... or maybe not, not sure at all... :-\

Anyway, in forums case, the problem is not really the "editor", if it was just for the editor there are some quite good. The main issue is that unless we want to go back to the old "let php handle it with all the tricks for different browsers and different versions of the same browser", the editor has to take care of the HTML-to-BBC conversion, so that "server-side" we just htmlspecialchar anything and we are happy. Unfortunately, the number of editors that deal with BBC (and do it "our" way or in a way that can be easily swapped) is rather limited (I feel less than 5, I know of 3 plus the two bigs TinyMCE and CKEditor with their plugin, though they are GPL/LGP/MPL, so never sure about what's "good").

Quote from: kucing – I don't really understand what kind of editor can be used (I'm not a programmer) but I find ProseMirror today: https://github.com/ProseMirror/prosemirror from today discussion on HN: https://news.ycombinator.com/item?id=11153757
Looks nice, it lacks the "bbcode" part as far as I can tell, though. :(

Anyway, just to be clear, this topic is not meant  as "let's rush changing the editor", it's more like "in the case we'd have to change the editor, here are few alternatives ready for consideration". ;D
Title: Re: Possible alternative editor(s)
Post by: kucing on February 22, 2016, 07:21:06 pm
Quote from: emanuele – Looks nice, it lacks the "bbcode" part as far as I can tell, though. :(

Anyway, just to be clear, this topic is not meant  as "let's rush changing the editor", it's more like "in the case we'd have to change the editor, here are few alternatives ready for consideration". ;D
I understand that. :) Just throwing more options, I checked at least it's actively developed.
Title: Re: Possible alternative editor(s)
Post by: Joshua Dickerson on February 23, 2016, 11:39:57 am
@emanuele that's actually what I mean - the part about swapping in and out conversions. The base layer would be the part that handles the text interaction. The higher level would be the part that does the conversions.
Title: Re: Possible alternative editor(s)
Post by: radu81 on February 23, 2016, 07:26:59 pm
 the license of Redator is for one year or one time pay?
Title: Re: Possible alternative editor(s)
Post by: Flavio93Zena on February 23, 2016, 07:56:03 pm
Hell, if it was 1500 for one year it would be robbery. Also emanuele said "to distribute" so it should be permanent.
Title: Re: Possible alternative editor(s)
Post by: radu81 on February 23, 2016, 08:04:05 pm
where did you find that info?
Title: Re: Possible alternative editor(s)
Post by: kucing on February 23, 2016, 08:11:50 pm
Redactor license is one time pay for the version bought: https://imperavi.com/redactor/license/
QuoteUpgrades, Updates, New Versions

Upgrades of License tires are not available — a new, full-price license must be purchased instead. License downgrades for partial refund are not available. All License tiers are only valid for the current major version of Redactor (1.x, 2.x, et cetera) and its minor updates. Each new major version of Redactor will require purchasing of a new license; existing license holders will receive a continuity discount upon purchasing each new license for each major version of Redactor.

So if any new major version released we must buy it again.
Title: Re: Possible alternative editor(s)
Post by: Flavio93Zena on February 23, 2016, 08:26:53 pm
Too tired, said emanuele when I meant Spuds...
Quote from: Spuds – Redactor II (current) would cost us ~$1500 to get a license that would allow us to use (and distribute) it in an OS project.
Title: Re: Possible alternative editor(s)
Post by: Joshua Dickerson on February 24, 2016, 12:18:17 pm
I really like how Redactor's code is designed. Look at how easy this is: https://imperavi.com/redactor/examples/buttons-sup-and-sub/