Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Admin UI] tweak litter style and use the more beautiful rich editor. #3418

Conversation

lanzhiheng
Copy link

No description provided.

@lanzhiheng lanzhiheng changed the title tweak litter style and use the more beautiful rich editor. [Admin UI] tweak litter style and use the more beautiful rich editor. Dec 20, 2018
@lanzhiheng
Copy link
Author

lanzhiheng commented Dec 20, 2018

@bricesanchez I think we need a more beautiful rich editor for New Admin UI.

Copy link
Member

@bricesanchez bricesanchez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lanzhiheng I agree we need a more beautiful rich editor but there are some consideration to take :

  • The WYSIWYG should be extracted from the core of Refinery like we do with refinerycms-wymeditor
  • It should support at least the same feature as Wymeditor (including the way to reference images, resources, pages)
  • It should be free to use : Sadly, Froala is not free https://github.com/froala/wysiwyg-rails#license
  • It should not require jQuery

I'm sorry but at this time i can't accept this PR with a new WYSIWYG

@lanzhiheng
Copy link
Author

@bricesanchez Thank you for your comments. I will try to search the suitable editor for it.

@lanzhiheng lanzhiheng changed the title [Admin UI] tweak litter style and use the more beautiful rich editor. [WIP] [Admin UI] tweak litter style and use the more beautiful rich editor. Dec 25, 2018
@lanzhiheng lanzhiheng changed the title [WIP] [Admin UI] tweak litter style and use the more beautiful rich editor. [Admin UI] tweak litter style and use the more beautiful rich editor. Dec 25, 2018
@lanzhiheng
Copy link
Author

@bricesanchez I have change the editor like below. I need to add an extra api for image upload I am not sure if you can accept it. please give me some feedback.

image

I just include very basic feature for ckeditor, if you need powerful function, I can rebuild a new package with some plugin.

@@ -10,4 +10,6 @@
*= require jquery/jquery.browser
*= require admin
*= require refinery/core
*= require ckeditor
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where is this dependency defined?

@parndt
Copy link
Member

parndt commented Feb 7, 2019

@bricesanchez what do you think of the above? I think the UI looks nice, but probably it should be an extension.

@lanzhiheng
Copy link
Author

@parndt CKeditor have the licence issue. So I create a special engine base by trix which have the MIT licence https://github.com/lanzhiheng/refinerycms-trix . It is very easy to extend. But the problem is that the editor is too poor basecamp/trix#587 .

@parndt
Copy link
Member

parndt commented Feb 7, 2019

Will all this be achieved in Rails 6 by https://github.com/rails/rails/tree/master/actiontext ?

@bricesanchez
Copy link
Member

@parndt yes it should be an extension, i think we could close this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants