Skip to content

Commit 2e976a2

Browse files
dheerajaccolitestefanneculai
authored andcommitted
V.3 (#78)
* Update README.md for v.3 integration * Update version
1 parent d3e61f9 commit 2e976a2

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ Add this to your Gemfile:
1313

1414
```ruby
1515
gem "wysiwyg-rails"
16-
gem "font-awesome-sass"
1716
```
1817

1918
and run `bundle install`.
2019

21-
Note, you can include your own alternative Font Awesome implementation rather than the `font-awesome-sass` gem if you like. In that case, you'll need to modify/remove the import statements below to work with your implementation.
22-
2320
## Include in assets
2421

2522
In your `application.css.scss`, include the css file:
@@ -28,8 +25,6 @@ In your `application.css.scss`, include the css file:
2825
/*
2926
@import "froala_editor.min";
3027
@import "froala_style.min";
31-
@import "font-awesome-sprockets";
32-
@import "font-awesome";
3328
*/
3429
```
3530

@@ -40,7 +35,9 @@ In your `application.js.coffee`, include the JS file:
4035
```coffeescript
4136
#= require froala_editor.min.js
4237

43-
$('selector').froalaEditor();
38+
new FroalaEditor('selector',{
39+
40+
});
4441
```
4542

4643
If you need to use any of the [Available Plugins](https://froala.com/wysiwyg-editor/docs/plugins), then you should include those too in your `application.js.coffee` and `application.css.scss`.
@@ -80,7 +77,6 @@ If you need to use any of the [Available Plugins](https://froala.com/wysiwyg-edi
8077

8178
#= require third_party/embedly.min.js
8279
#= require third_party/font_awesome.min.js
83-
#= require third_party/image_aviary.min.js
8480
#= require third_party/image_tui.min.js
8581
#= require third_party/spell_checker.min.js
8682
```

lib/wysiwyg-rails/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module WYSIWYG
22
module Rails
3-
VERSION = "2.9.3"
3+
VERSION = "3.0.0-beta.1"
44
end
55
end

wysiwyg-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ require File.expand_path('../lib/wysiwyg-rails/version', __FILE__)
44
Gem::Specification.new do |gem|
55
gem.authors = ["Froala Labs"]
66
gem.email = ["[email protected]"]
7-
gem.description = "A beautiful jQuery WYSIWYG HTML text editor. High performance and modern design make it easy to use for developers and loved by users."
7+
gem.description = "A beautiful WYSIWYG HTML text editor. High performance and modern design make it easy to use for developers and loved by users."
88
gem.summary = "an asset gemification of the Froala WYSIWYG Editor library"
99
gem.homepage = "https://github.com/froala/wysiwyg-rails"
1010
gem.licenses = ["MIT"]

0 commit comments

Comments
 (0)