rapyd-laravel icon indicating copy to clipboard operation
rapyd-laravel copied to clipboard

I'll Drop support for Redactor.js

Open zofe opened this issue 9 years ago • 22 comments

I must drop support for redactor.js as wysiwyg. We use the old v7.6.1 of 2012, it "was" mit licensed (so open source) as you can see here: https://github.com/zofe/rapyd-laravel/blob/master/public/assets/redactor/redactor.js

But now It's ONLY commercial, to prevent legal problems I decided to remove all js/css and "redactor" field type for DataForm.

if you want still use redactor

  • You can still use redactor.js switching from "redactor" to "textarea" field and including your own copy of redactor js/css (i think you must buy a license)
$form->add('body','Body', 'redactor'); //from
$form->add('body','Body', 'textarea')->attr('class','redactor'); //to
  • You can contribute to buy a 499$ OEM license (specific to open source projects) tipping me or sending bitcoins here: https://www.gittip.com/zofe/ This way I can re-add support to a fresh redactor copy, that will be fine also for your commercial application. more detail here: imperavi.com/redactor/download/

if you want suggest a valid wysiwyg alternative

Please write here to suggest an open source alternative to replace redactor. It must be small (few files), recent, and with a good community, free for commercial use

zofe avatar Aug 01 '14 09:08 zofe

My candidate is : http://ckeditor.com/ It has "also" a commercial license but as alternative. It seems feature rich, word integration, etc.. But it's not small.. so suggest alternative please

zofe avatar Aug 01 '14 10:08 zofe

Ckeditor is very nice. The size, though, is enormous (last time I got 400k of compressed js IIRC). However it may make more sense to put in something feature rich than something too basic in this case, and try to load the js on demand.

tacone avatar Aug 01 '14 16:08 tacone

http://cdn.ckeditor.com/ what about to use a CDN? I mean.. rapyd require of Bootstrap and for some fields JQuery but neither is included.

zofe avatar Aug 01 '14 17:08 zofe

our datepicker (and all unused languages files) can be moved here: https://www.cdnjs.com/libraries/bootstrap-datepicker typehead: https://www.cdnjs.com/libraries/typeahead.js

but there isn't a colorpicker, and a good tags-input

zofe avatar Aug 01 '14 18:08 zofe

I hate cdn's. If size is a concern we can have ckeditor on the cdn but stripping all js would be a mistake I think.

tacone avatar Aug 01 '14 20:08 tacone

What about https://github.com/hackerwins/summernote

actively developed MIT licence minified js is less than 60K css is around 10K pretty feature rich (even if not as rich as ckeditor) inspired by redactor leverages twitter bootstrap

bonus feature: keyboard binding (i love it)

ssomenzi avatar Sep 01 '14 18:09 ssomenzi

look like it has improved a lot since the last time I looked at it

tacone avatar Sep 01 '14 19:09 tacone

ok, summernote is my candidate now.

zofe avatar Sep 02 '14 07:09 zofe

some suggestion : https://github.com/arryanggaputra/Mokki-Editor

tvalentius avatar Sep 02 '14 07:09 tvalentius

@tvalentius mokki sems absolutely lightweight so.. good, but It seems really new and I don't see fallback for old browsers.

I think we well adopt summernote as default, all other wysiwyg can be used via textarea field + adding custom css class (or custom javascript function for mokki)

zofe avatar Sep 05 '14 16:09 zofe

@zofe any news on summernote integration? i also think it's a great replacement for redactor.

nilsE avatar Jan 14 '15 15:01 nilsE

Hi, I'm little bit busy but, should be simple as copy and paste this class renamed as Summernote: https://github.com/zofe/rapyd-laravel/blob/master/src/Zofe/Rapyd/DataForm/Field/Redactor.php creating an asset folder "summernote" with js and css here: https://github.com/zofe/rapyd-laravel/tree/master/public/assets and replacing references to css and js in the new class

if I do not receive the pull request "before" I'll do the new field on next weekend (I hope).

zofe avatar Jan 14 '15 15:01 zofe

any update on this topic?

ghost avatar Apr 19 '15 19:04 ghost

and https://github.com/zofe/rapyd-laravel/blob/master/src/Zofe/Rapyd/DataForm/Field/Redactor.php is broken link

ghost avatar Apr 19 '15 23:04 ghost

it's broken because later on rapyd switched to PSR-4. Here's the new one: https://github.com/zofe/rapyd-laravel/blob/master/src/DataForm/Field/Redactor.php

tacone avatar Apr 19 '15 23:04 tacone

I follow above instructor to change to summernote from redactor successfully, thanks

ghost avatar Apr 22 '15 15:04 ghost

I'd suggest Trumbowyg for it's simplicity and small footprint: http://alex-d.github.io/Trumbowyg/ https://github.com/Alex-D/Trumbowyg

davelopware avatar Apr 27 '15 19:04 davelopware

what about TinyMCE #Zofe ? http://www.tinymce.com/ i think you should go for it..

Hammad51 avatar May 12 '15 09:05 Hammad51

TinyMCE community edition is LGPL 2.1 licensed and looks like a great alternative indeed. @zofe

tamer-hassan avatar Jan 11 '16 12:01 tamer-hassan

Any update on this?

DennisCraandijk avatar May 04 '16 08:05 DennisCraandijk

I'm playing with summer note right now. Looks sweet to me.

tacone avatar May 04 '16 11:05 tacone

My suggestions are:

tacone avatar May 04 '16 16:05 tacone