Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

wangeditor_rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wangeditor_rails

  • 0.1.1
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

wangeditor_rails

wangEditor —— 轻量级 web 富文本编辑器,配置方便,使用简单。支持 IE10+ 浏览器。

Features

  • 提供wangeditor(3.0.10)Rails集成
  • 支持SimpleForm

Install

  1. Add to Gemfile then run 'bundle'
gem 'wangeditor_rails'
  1. Run install generator
rails generate wangeditor:install
  1. Add below line to your application.js
//= require wangEditor

Usage:

<%= form_for @post do |f| %>
  <%= f.text_field :body %>
  <%= f.wangeditor :body %>
  <%= f.submit %>
<% end %>

with SimpleForm

<%= simple_form_for @post do |f| %>
  <%= f.input :title %>
  <%= f.input :body, as: :wangeditor %>
  <%= f.button :submit %>
<% end %>

Todo

  • 七牛上传图片

Thanks

License

MIT License.

FAQs

Package last updated on 02 Nov 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc