Activeadmin Extensions: Rich Text editor _ror

Source: Internet
Author: User

Consolidated activeadmin and Rich text editors



--Kindeditor
1, Gem ' Rails_kindeditor '
2, rails generate Rails_kindeditor:install
3, F.input [field name],: as =>: Kindeditor
4, Ke-container Ke-container-default
This is the kindeditor automatically generated div default class, which can be added with a class, plus the style sheet:
. [newly added class] {
width:79%; Width adjusted according to actual situation
}


--CKEditor
1, Gem ' CKEditor '
2, Rails g ckeditor:install
3. Rake Db:migrate
4, active_admin.js add//= require Ckeditor/init
5, F.input [field name],: as =>: CKEditor
6, the style sheet plus
#cke_article_content {//Here ID is generated ckeditor for the field, the format is cke_[Model]_[field]
width:77.5%; Width adjusted according to actual situation
Overflow:hidden;
}


The above content is sorted by Bruce.xue.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.