You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-7Lines changed: 3 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,13 +13,10 @@ Add this to your Gemfile:
13
13
14
14
```ruby
15
15
gem "wysiwyg-rails"
16
-
gem "font-awesome-sass"
17
16
```
18
17
19
18
and run `bundle install`.
20
19
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
-
23
20
## Include in assets
24
21
25
22
In your `application.css.scss`, include the css file:
@@ -28,8 +25,6 @@ In your `application.css.scss`, include the css file:
28
25
/*
29
26
@import "froala_editor.min";
30
27
@import "froala_style.min";
31
-
@import "font-awesome-sprockets";
32
-
@import "font-awesome";
33
28
*/
34
29
```
35
30
@@ -40,7 +35,9 @@ In your `application.js.coffee`, include the JS file:
40
35
```coffeescript
41
36
#= require froala_editor.min.js
42
37
43
-
$('selector').froalaEditor();
38
+
newFroalaEditor('selector',{
39
+
40
+
});
44
41
```
45
42
46
43
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
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."
8
8
gem.summary="an asset gemification of the Froala WYSIWYG Editor library"
0 commit comments