diff --git a/README.md b/README.md index 17eaf94d..6b8e6fb9 100644 --- a/README.md +++ b/README.md @@ -23,19 +23,19 @@ In your `application.css.scss`, include the css file: ```css /* - @import "froala_editor.min"; - @import "froala_style.min"; + @import "froala/froala_editor.min"; + @import "froala/froala_style.min"; @import "font-awesome-sprockets"; @import "font-awesome"; */ ``` -If you want to use the dark theme, then you have to include `themes/dark.min.css` file too. +If you want to use the dark theme, then you have to include `froala/themes/dark.min.css` file too. In your `application.js.coffee`, include the JS file: ```coffeescript -#= require froala_editor.min.js +#= require froala/froala_editor.min.js $('selector').froalaEditor(); ``` @@ -44,65 +44,65 @@ If you need to use any of the [Available Plugins](https://froala.com/wysiwyg-edi ```coffeescript # Include other plugins. -#= require plugins/align.min.js -#= require plugins/char_counter.min.js -#= require plugins/code_beautifier.min.js -#= require plugins/code_view.min.js -#= require plugins/colors.min.js -#= require plugins/emoticons.min.js -#= require plugins/entities.min.js -#= require plugins/file.min.js -#= require plugins/font_family.min.js -#= require plugins/font_size.min.js -#= require plugins/fullscreen.min.js -#= require plugins/help.min.js -#= require plugins/image.min.js -#= require plugins/image_manager.min.js -#= require plugins/inline_style.min.js -#= require plugins/line_breaker.min.js -#= require plugins/link.min.js -#= require plugins/lists.min.js -#= require plugins/paragraph_format.min.js -#= require plugins/paragraph_style.min.js -#= require plugins/print.min.js -#= require plugins/quick_insert.min.js -#= require plugins/quote.min.js -#= require plugins/save.min.js -#= require plugins/table.min.js -#= require plugins/special_characters.min.js -#= require plugins/url.min.js -#= require plugins/video.min.js - -#= require third_party/embedly.min.js -#= require third_party/image_aviary.min.js -#= require third_party/spell_checker.min.js +#= require froala/plugins/align.min.js +#= require froala/plugins/char_counter.min.js +#= require froala/plugins/code_beautifier.min.js +#= require froala/plugins/code_view.min.js +#= require froala/plugins/colors.min.js +#= require froala/plugins/emoticons.min.js +#= require froala/plugins/entities.min.js +#= require froala/plugins/file.min.js +#= require froala/plugins/font_family.min.js +#= require froala/plugins/font_size.min.js +#= require froala/plugins/fullscreen.min.js +#= require froala/plugins/help.min.js +#= require froala/plugins/image.min.js +#= require froala/plugins/image_manager.min.js +#= require froala/plugins/inline_style.min.js +#= require froala/plugins/line_breaker.min.js +#= require froala/plugins/link.min.js +#= require froala/plugins/lists.min.js +#= require froala/plugins/paragraph_format.min.js +#= require froala/plugins/paragraph_style.min.js +#= require froala/plugins/print.min.js +#= require froala/plugins/quick_insert.min.js +#= require froala/plugins/quote.min.js +#= require froala/plugins/save.min.js +#= require froala/plugins/table.min.js +#= require froala/plugins/special_characters.min.js +#= require froala/plugins/url.min.js +#= require froala/plugins/video.min.js + +#= require froala/third_party/embedly.min.js +#= require froala/third_party/image_aviary.min.js +#= require froala/third_party/spell_checker.min.js ``` ```css -@import 'plugins/char_counter.min.css'; -@import 'plugins/code_view.min.css'; -@import 'plugins/colors.min.css'; -@import 'plugins/emoticons.min.css'; -@import 'plugins/file.min.css'; -@import 'plugins/fullscreen.min.css'; -@import 'plugins/help.min.css'; -@import 'plugins/image_manager.min.css'; -@import 'plugins/image.min.css'; -@import 'plugins/line_breaker.min.css'; -@import 'plugins/quick_insert.min.css'; -@import 'plugins/special_characters.min.css'; -@import 'plugins/table.min.css'; -@import 'plugins/video.min.css'; - -@import 'third_party/embedly.min.css'; -@import 'third_party/spell_checker.min.css'; +@import 'froala/plugins/char_counter.min.css'; +@import 'froala/plugins/code_view.min.css'; +@import 'froala/plugins/colors.min.css'; +@import 'froala/plugins/emoticons.min.css'; +@import 'froala/plugins/file.min.css'; +@import 'froala/plugins/fullscreen.min.css'; +@import 'froala/plugins/help.min.css'; +@import 'froala/plugins/image_manager.min.css'; +@import 'froala/plugins/image.min.css'; +@import 'froala/plugins/line_breaker.min.css'; +@import 'froala/plugins/quick_insert.min.css'; +@import 'froala/plugins/special_characters.min.css'; +@import 'froala/plugins/table.min.css'; +@import 'froala/plugins/video.min.css'; + +@import 'froala/third_party/embedly.min.css'; +@import 'froala/third_party/spell_checker.min.css'; ``` Similar, if you want to use language translation you have to include the translation file. ```coffeescript # Include Language if needed -#= require languages/ro.js +#= require froala/languages/ro.js ``` Then restart your web server if it was previously running. diff --git a/app/assets/javascripts/froala_editor.min.js b/app/assets/javascripts/froala/froala_editor.min.js similarity index 100% rename from app/assets/javascripts/froala_editor.min.js rename to app/assets/javascripts/froala/froala_editor.min.js diff --git a/app/assets/javascripts/froala_editor.pkgd.min.js b/app/assets/javascripts/froala/froala_editor.pkgd.min.js similarity index 100% rename from app/assets/javascripts/froala_editor.pkgd.min.js rename to app/assets/javascripts/froala/froala_editor.pkgd.min.js diff --git a/app/assets/javascripts/languages/ar.js b/app/assets/javascripts/froala/languages/ar.js similarity index 100% rename from app/assets/javascripts/languages/ar.js rename to app/assets/javascripts/froala/languages/ar.js diff --git a/app/assets/javascripts/languages/bs.js b/app/assets/javascripts/froala/languages/bs.js similarity index 100% rename from app/assets/javascripts/languages/bs.js rename to app/assets/javascripts/froala/languages/bs.js diff --git a/app/assets/javascripts/languages/cs.js b/app/assets/javascripts/froala/languages/cs.js similarity index 100% rename from app/assets/javascripts/languages/cs.js rename to app/assets/javascripts/froala/languages/cs.js diff --git a/app/assets/javascripts/languages/da.js b/app/assets/javascripts/froala/languages/da.js similarity index 100% rename from app/assets/javascripts/languages/da.js rename to app/assets/javascripts/froala/languages/da.js diff --git a/app/assets/javascripts/languages/de.js b/app/assets/javascripts/froala/languages/de.js similarity index 100% rename from app/assets/javascripts/languages/de.js rename to app/assets/javascripts/froala/languages/de.js diff --git a/app/assets/javascripts/languages/en_ca.js b/app/assets/javascripts/froala/languages/en_ca.js similarity index 100% rename from app/assets/javascripts/languages/en_ca.js rename to app/assets/javascripts/froala/languages/en_ca.js diff --git a/app/assets/javascripts/languages/en_gb.js b/app/assets/javascripts/froala/languages/en_gb.js similarity index 100% rename from app/assets/javascripts/languages/en_gb.js rename to app/assets/javascripts/froala/languages/en_gb.js diff --git a/app/assets/javascripts/languages/es.js b/app/assets/javascripts/froala/languages/es.js similarity index 100% rename from app/assets/javascripts/languages/es.js rename to app/assets/javascripts/froala/languages/es.js diff --git a/app/assets/javascripts/languages/et.js b/app/assets/javascripts/froala/languages/et.js similarity index 100% rename from app/assets/javascripts/languages/et.js rename to app/assets/javascripts/froala/languages/et.js diff --git a/app/assets/javascripts/languages/fa.js b/app/assets/javascripts/froala/languages/fa.js similarity index 100% rename from app/assets/javascripts/languages/fa.js rename to app/assets/javascripts/froala/languages/fa.js diff --git a/app/assets/javascripts/languages/fi.js b/app/assets/javascripts/froala/languages/fi.js similarity index 100% rename from app/assets/javascripts/languages/fi.js rename to app/assets/javascripts/froala/languages/fi.js diff --git a/app/assets/javascripts/languages/fr.js b/app/assets/javascripts/froala/languages/fr.js similarity index 100% rename from app/assets/javascripts/languages/fr.js rename to app/assets/javascripts/froala/languages/fr.js diff --git a/app/assets/javascripts/languages/he.js b/app/assets/javascripts/froala/languages/he.js similarity index 100% rename from app/assets/javascripts/languages/he.js rename to app/assets/javascripts/froala/languages/he.js diff --git a/app/assets/javascripts/languages/hr.js b/app/assets/javascripts/froala/languages/hr.js similarity index 100% rename from app/assets/javascripts/languages/hr.js rename to app/assets/javascripts/froala/languages/hr.js diff --git a/app/assets/javascripts/languages/hu.js b/app/assets/javascripts/froala/languages/hu.js similarity index 100% rename from app/assets/javascripts/languages/hu.js rename to app/assets/javascripts/froala/languages/hu.js diff --git a/app/assets/javascripts/languages/id.js b/app/assets/javascripts/froala/languages/id.js similarity index 100% rename from app/assets/javascripts/languages/id.js rename to app/assets/javascripts/froala/languages/id.js diff --git a/app/assets/javascripts/languages/it.js b/app/assets/javascripts/froala/languages/it.js similarity index 100% rename from app/assets/javascripts/languages/it.js rename to app/assets/javascripts/froala/languages/it.js diff --git a/app/assets/javascripts/languages/ja.js b/app/assets/javascripts/froala/languages/ja.js similarity index 100% rename from app/assets/javascripts/languages/ja.js rename to app/assets/javascripts/froala/languages/ja.js diff --git a/app/assets/javascripts/languages/ko.js b/app/assets/javascripts/froala/languages/ko.js similarity index 100% rename from app/assets/javascripts/languages/ko.js rename to app/assets/javascripts/froala/languages/ko.js diff --git a/app/assets/javascripts/languages/me.js b/app/assets/javascripts/froala/languages/me.js similarity index 100% rename from app/assets/javascripts/languages/me.js rename to app/assets/javascripts/froala/languages/me.js diff --git a/app/assets/javascripts/languages/nb.js b/app/assets/javascripts/froala/languages/nb.js similarity index 100% rename from app/assets/javascripts/languages/nb.js rename to app/assets/javascripts/froala/languages/nb.js diff --git a/app/assets/javascripts/languages/nl.js b/app/assets/javascripts/froala/languages/nl.js similarity index 100% rename from app/assets/javascripts/languages/nl.js rename to app/assets/javascripts/froala/languages/nl.js diff --git a/app/assets/javascripts/languages/pl.js b/app/assets/javascripts/froala/languages/pl.js similarity index 100% rename from app/assets/javascripts/languages/pl.js rename to app/assets/javascripts/froala/languages/pl.js diff --git a/app/assets/javascripts/languages/pt_br.js b/app/assets/javascripts/froala/languages/pt_br.js similarity index 100% rename from app/assets/javascripts/languages/pt_br.js rename to app/assets/javascripts/froala/languages/pt_br.js diff --git a/app/assets/javascripts/languages/pt_pt.js b/app/assets/javascripts/froala/languages/pt_pt.js similarity index 100% rename from app/assets/javascripts/languages/pt_pt.js rename to app/assets/javascripts/froala/languages/pt_pt.js diff --git a/app/assets/javascripts/languages/ro.js b/app/assets/javascripts/froala/languages/ro.js similarity index 100% rename from app/assets/javascripts/languages/ro.js rename to app/assets/javascripts/froala/languages/ro.js diff --git a/app/assets/javascripts/languages/ru.js b/app/assets/javascripts/froala/languages/ru.js similarity index 100% rename from app/assets/javascripts/languages/ru.js rename to app/assets/javascripts/froala/languages/ru.js diff --git a/app/assets/javascripts/languages/sk.js b/app/assets/javascripts/froala/languages/sk.js similarity index 100% rename from app/assets/javascripts/languages/sk.js rename to app/assets/javascripts/froala/languages/sk.js diff --git a/app/assets/javascripts/languages/sr.js b/app/assets/javascripts/froala/languages/sr.js similarity index 100% rename from app/assets/javascripts/languages/sr.js rename to app/assets/javascripts/froala/languages/sr.js diff --git a/app/assets/javascripts/languages/sv.js b/app/assets/javascripts/froala/languages/sv.js similarity index 100% rename from app/assets/javascripts/languages/sv.js rename to app/assets/javascripts/froala/languages/sv.js diff --git a/app/assets/javascripts/languages/th.js b/app/assets/javascripts/froala/languages/th.js similarity index 100% rename from app/assets/javascripts/languages/th.js rename to app/assets/javascripts/froala/languages/th.js diff --git a/app/assets/javascripts/languages/tr.js b/app/assets/javascripts/froala/languages/tr.js similarity index 100% rename from app/assets/javascripts/languages/tr.js rename to app/assets/javascripts/froala/languages/tr.js diff --git a/app/assets/javascripts/languages/uk.js b/app/assets/javascripts/froala/languages/uk.js similarity index 100% rename from app/assets/javascripts/languages/uk.js rename to app/assets/javascripts/froala/languages/uk.js diff --git a/app/assets/javascripts/languages/vi.js b/app/assets/javascripts/froala/languages/vi.js similarity index 100% rename from app/assets/javascripts/languages/vi.js rename to app/assets/javascripts/froala/languages/vi.js diff --git a/app/assets/javascripts/languages/zh_cn.js b/app/assets/javascripts/froala/languages/zh_cn.js similarity index 100% rename from app/assets/javascripts/languages/zh_cn.js rename to app/assets/javascripts/froala/languages/zh_cn.js diff --git a/app/assets/javascripts/languages/zh_tw.js b/app/assets/javascripts/froala/languages/zh_tw.js similarity index 100% rename from app/assets/javascripts/languages/zh_tw.js rename to app/assets/javascripts/froala/languages/zh_tw.js diff --git a/app/assets/javascripts/plugins/align.min.js b/app/assets/javascripts/froala/plugins/align.min.js similarity index 100% rename from app/assets/javascripts/plugins/align.min.js rename to app/assets/javascripts/froala/plugins/align.min.js diff --git a/app/assets/javascripts/plugins/char_counter.min.js b/app/assets/javascripts/froala/plugins/char_counter.min.js similarity index 100% rename from app/assets/javascripts/plugins/char_counter.min.js rename to app/assets/javascripts/froala/plugins/char_counter.min.js diff --git a/app/assets/javascripts/plugins/code_beautifier.min.js b/app/assets/javascripts/froala/plugins/code_beautifier.min.js similarity index 100% rename from app/assets/javascripts/plugins/code_beautifier.min.js rename to app/assets/javascripts/froala/plugins/code_beautifier.min.js diff --git a/app/assets/javascripts/plugins/code_view.min.js b/app/assets/javascripts/froala/plugins/code_view.min.js similarity index 100% rename from app/assets/javascripts/plugins/code_view.min.js rename to app/assets/javascripts/froala/plugins/code_view.min.js diff --git a/app/assets/javascripts/plugins/colors.min.js b/app/assets/javascripts/froala/plugins/colors.min.js similarity index 100% rename from app/assets/javascripts/plugins/colors.min.js rename to app/assets/javascripts/froala/plugins/colors.min.js diff --git a/app/assets/javascripts/plugins/draggable.min.js b/app/assets/javascripts/froala/plugins/draggable.min.js similarity index 100% rename from app/assets/javascripts/plugins/draggable.min.js rename to app/assets/javascripts/froala/plugins/draggable.min.js diff --git a/app/assets/javascripts/plugins/emoticons.min.js b/app/assets/javascripts/froala/plugins/emoticons.min.js similarity index 100% rename from app/assets/javascripts/plugins/emoticons.min.js rename to app/assets/javascripts/froala/plugins/emoticons.min.js diff --git a/app/assets/javascripts/plugins/entities.min.js b/app/assets/javascripts/froala/plugins/entities.min.js similarity index 100% rename from app/assets/javascripts/plugins/entities.min.js rename to app/assets/javascripts/froala/plugins/entities.min.js diff --git a/app/assets/javascripts/plugins/file.min.js b/app/assets/javascripts/froala/plugins/file.min.js similarity index 100% rename from app/assets/javascripts/plugins/file.min.js rename to app/assets/javascripts/froala/plugins/file.min.js diff --git a/app/assets/javascripts/plugins/font_family.min.js b/app/assets/javascripts/froala/plugins/font_family.min.js similarity index 100% rename from app/assets/javascripts/plugins/font_family.min.js rename to app/assets/javascripts/froala/plugins/font_family.min.js diff --git a/app/assets/javascripts/plugins/font_size.min.js b/app/assets/javascripts/froala/plugins/font_size.min.js similarity index 100% rename from app/assets/javascripts/plugins/font_size.min.js rename to app/assets/javascripts/froala/plugins/font_size.min.js diff --git a/app/assets/javascripts/plugins/forms.min.js b/app/assets/javascripts/froala/plugins/forms.min.js similarity index 100% rename from app/assets/javascripts/plugins/forms.min.js rename to app/assets/javascripts/froala/plugins/forms.min.js diff --git a/app/assets/javascripts/plugins/fullscreen.min.js b/app/assets/javascripts/froala/plugins/fullscreen.min.js similarity index 100% rename from app/assets/javascripts/plugins/fullscreen.min.js rename to app/assets/javascripts/froala/plugins/fullscreen.min.js diff --git a/app/assets/javascripts/plugins/help.min.js b/app/assets/javascripts/froala/plugins/help.min.js similarity index 100% rename from app/assets/javascripts/plugins/help.min.js rename to app/assets/javascripts/froala/plugins/help.min.js diff --git a/app/assets/javascripts/plugins/image.min.js b/app/assets/javascripts/froala/plugins/image.min.js similarity index 100% rename from app/assets/javascripts/plugins/image.min.js rename to app/assets/javascripts/froala/plugins/image.min.js diff --git a/app/assets/javascripts/plugins/image_manager.min.js b/app/assets/javascripts/froala/plugins/image_manager.min.js similarity index 100% rename from app/assets/javascripts/plugins/image_manager.min.js rename to app/assets/javascripts/froala/plugins/image_manager.min.js diff --git a/app/assets/javascripts/plugins/inline_style.min.js b/app/assets/javascripts/froala/plugins/inline_style.min.js similarity index 100% rename from app/assets/javascripts/plugins/inline_style.min.js rename to app/assets/javascripts/froala/plugins/inline_style.min.js diff --git a/app/assets/javascripts/plugins/line_breaker.min.js b/app/assets/javascripts/froala/plugins/line_breaker.min.js similarity index 100% rename from app/assets/javascripts/plugins/line_breaker.min.js rename to app/assets/javascripts/froala/plugins/line_breaker.min.js diff --git a/app/assets/javascripts/plugins/link.min.js b/app/assets/javascripts/froala/plugins/link.min.js similarity index 100% rename from app/assets/javascripts/plugins/link.min.js rename to app/assets/javascripts/froala/plugins/link.min.js diff --git a/app/assets/javascripts/plugins/lists.min.js b/app/assets/javascripts/froala/plugins/lists.min.js similarity index 100% rename from app/assets/javascripts/plugins/lists.min.js rename to app/assets/javascripts/froala/plugins/lists.min.js diff --git a/app/assets/javascripts/plugins/paragraph_format.min.js b/app/assets/javascripts/froala/plugins/paragraph_format.min.js similarity index 100% rename from app/assets/javascripts/plugins/paragraph_format.min.js rename to app/assets/javascripts/froala/plugins/paragraph_format.min.js diff --git a/app/assets/javascripts/plugins/paragraph_style.min.js b/app/assets/javascripts/froala/plugins/paragraph_style.min.js similarity index 100% rename from app/assets/javascripts/plugins/paragraph_style.min.js rename to app/assets/javascripts/froala/plugins/paragraph_style.min.js diff --git a/app/assets/javascripts/plugins/print.min.js b/app/assets/javascripts/froala/plugins/print.min.js similarity index 100% rename from app/assets/javascripts/plugins/print.min.js rename to app/assets/javascripts/froala/plugins/print.min.js diff --git a/app/assets/javascripts/plugins/quick_insert.min.js b/app/assets/javascripts/froala/plugins/quick_insert.min.js similarity index 100% rename from app/assets/javascripts/plugins/quick_insert.min.js rename to app/assets/javascripts/froala/plugins/quick_insert.min.js diff --git a/app/assets/javascripts/plugins/quote.min.js b/app/assets/javascripts/froala/plugins/quote.min.js similarity index 100% rename from app/assets/javascripts/plugins/quote.min.js rename to app/assets/javascripts/froala/plugins/quote.min.js diff --git a/app/assets/javascripts/plugins/save.min.js b/app/assets/javascripts/froala/plugins/save.min.js similarity index 100% rename from app/assets/javascripts/plugins/save.min.js rename to app/assets/javascripts/froala/plugins/save.min.js diff --git a/app/assets/javascripts/plugins/special_characters.min.js b/app/assets/javascripts/froala/plugins/special_characters.min.js similarity index 100% rename from app/assets/javascripts/plugins/special_characters.min.js rename to app/assets/javascripts/froala/plugins/special_characters.min.js diff --git a/app/assets/javascripts/plugins/table.min.js b/app/assets/javascripts/froala/plugins/table.min.js similarity index 100% rename from app/assets/javascripts/plugins/table.min.js rename to app/assets/javascripts/froala/plugins/table.min.js diff --git a/app/assets/javascripts/plugins/url.min.js b/app/assets/javascripts/froala/plugins/url.min.js similarity index 100% rename from app/assets/javascripts/plugins/url.min.js rename to app/assets/javascripts/froala/plugins/url.min.js diff --git a/app/assets/javascripts/plugins/video.min.js b/app/assets/javascripts/froala/plugins/video.min.js similarity index 100% rename from app/assets/javascripts/plugins/video.min.js rename to app/assets/javascripts/froala/plugins/video.min.js diff --git a/app/assets/javascripts/plugins/word_paste.min.js b/app/assets/javascripts/froala/plugins/word_paste.min.js similarity index 100% rename from app/assets/javascripts/plugins/word_paste.min.js rename to app/assets/javascripts/froala/plugins/word_paste.min.js diff --git a/app/assets/javascripts/third_party/embedly.min.js b/app/assets/javascripts/froala/third_party/embedly.min.js similarity index 100% rename from app/assets/javascripts/third_party/embedly.min.js rename to app/assets/javascripts/froala/third_party/embedly.min.js diff --git a/app/assets/javascripts/third_party/image_aviary.min.js b/app/assets/javascripts/froala/third_party/image_aviary.min.js similarity index 100% rename from app/assets/javascripts/third_party/image_aviary.min.js rename to app/assets/javascripts/froala/third_party/image_aviary.min.js diff --git a/app/assets/javascripts/third_party/spell_checker.min.js b/app/assets/javascripts/froala/third_party/spell_checker.min.js similarity index 100% rename from app/assets/javascripts/third_party/spell_checker.min.js rename to app/assets/javascripts/froala/third_party/spell_checker.min.js diff --git a/app/assets/stylesheets/froala_editor.css b/app/assets/stylesheets/froala/froala_editor.css similarity index 100% rename from app/assets/stylesheets/froala_editor.css rename to app/assets/stylesheets/froala/froala_editor.css diff --git a/app/assets/stylesheets/froala_editor.min.css b/app/assets/stylesheets/froala/froala_editor.min.css similarity index 100% rename from app/assets/stylesheets/froala_editor.min.css rename to app/assets/stylesheets/froala/froala_editor.min.css diff --git a/app/assets/stylesheets/froala_editor.pkgd.css b/app/assets/stylesheets/froala/froala_editor.pkgd.css similarity index 100% rename from app/assets/stylesheets/froala_editor.pkgd.css rename to app/assets/stylesheets/froala/froala_editor.pkgd.css diff --git a/app/assets/stylesheets/froala_editor.pkgd.min.css b/app/assets/stylesheets/froala/froala_editor.pkgd.min.css similarity index 100% rename from app/assets/stylesheets/froala_editor.pkgd.min.css rename to app/assets/stylesheets/froala/froala_editor.pkgd.min.css diff --git a/app/assets/stylesheets/froala_style.css b/app/assets/stylesheets/froala/froala_style.css similarity index 100% rename from app/assets/stylesheets/froala_style.css rename to app/assets/stylesheets/froala/froala_style.css diff --git a/app/assets/stylesheets/froala_style.min.css b/app/assets/stylesheets/froala/froala_style.min.css similarity index 100% rename from app/assets/stylesheets/froala_style.min.css rename to app/assets/stylesheets/froala/froala_style.min.css diff --git a/app/assets/stylesheets/plugins/char_counter.css b/app/assets/stylesheets/froala/plugins/char_counter.css similarity index 100% rename from app/assets/stylesheets/plugins/char_counter.css rename to app/assets/stylesheets/froala/plugins/char_counter.css diff --git a/app/assets/stylesheets/plugins/char_counter.min.css b/app/assets/stylesheets/froala/plugins/char_counter.min.css similarity index 100% rename from app/assets/stylesheets/plugins/char_counter.min.css rename to app/assets/stylesheets/froala/plugins/char_counter.min.css diff --git a/app/assets/stylesheets/plugins/code_view.css b/app/assets/stylesheets/froala/plugins/code_view.css similarity index 100% rename from app/assets/stylesheets/plugins/code_view.css rename to app/assets/stylesheets/froala/plugins/code_view.css diff --git a/app/assets/stylesheets/plugins/code_view.min.css b/app/assets/stylesheets/froala/plugins/code_view.min.css similarity index 100% rename from app/assets/stylesheets/plugins/code_view.min.css rename to app/assets/stylesheets/froala/plugins/code_view.min.css diff --git a/app/assets/stylesheets/plugins/colors.css b/app/assets/stylesheets/froala/plugins/colors.css similarity index 100% rename from app/assets/stylesheets/plugins/colors.css rename to app/assets/stylesheets/froala/plugins/colors.css diff --git a/app/assets/stylesheets/plugins/colors.min.css b/app/assets/stylesheets/froala/plugins/colors.min.css similarity index 100% rename from app/assets/stylesheets/plugins/colors.min.css rename to app/assets/stylesheets/froala/plugins/colors.min.css diff --git a/app/assets/stylesheets/plugins/draggable.css b/app/assets/stylesheets/froala/plugins/draggable.css similarity index 100% rename from app/assets/stylesheets/plugins/draggable.css rename to app/assets/stylesheets/froala/plugins/draggable.css diff --git a/app/assets/stylesheets/plugins/draggable.min.css b/app/assets/stylesheets/froala/plugins/draggable.min.css similarity index 100% rename from app/assets/stylesheets/plugins/draggable.min.css rename to app/assets/stylesheets/froala/plugins/draggable.min.css diff --git a/app/assets/stylesheets/plugins/emoticons.css b/app/assets/stylesheets/froala/plugins/emoticons.css similarity index 100% rename from app/assets/stylesheets/plugins/emoticons.css rename to app/assets/stylesheets/froala/plugins/emoticons.css diff --git a/app/assets/stylesheets/plugins/emoticons.min.css b/app/assets/stylesheets/froala/plugins/emoticons.min.css similarity index 100% rename from app/assets/stylesheets/plugins/emoticons.min.css rename to app/assets/stylesheets/froala/plugins/emoticons.min.css diff --git a/app/assets/stylesheets/plugins/file.css b/app/assets/stylesheets/froala/plugins/file.css similarity index 100% rename from app/assets/stylesheets/plugins/file.css rename to app/assets/stylesheets/froala/plugins/file.css diff --git a/app/assets/stylesheets/plugins/file.min.css b/app/assets/stylesheets/froala/plugins/file.min.css similarity index 100% rename from app/assets/stylesheets/plugins/file.min.css rename to app/assets/stylesheets/froala/plugins/file.min.css diff --git a/app/assets/stylesheets/plugins/fullscreen.css b/app/assets/stylesheets/froala/plugins/fullscreen.css similarity index 100% rename from app/assets/stylesheets/plugins/fullscreen.css rename to app/assets/stylesheets/froala/plugins/fullscreen.css diff --git a/app/assets/stylesheets/plugins/fullscreen.min.css b/app/assets/stylesheets/froala/plugins/fullscreen.min.css similarity index 100% rename from app/assets/stylesheets/plugins/fullscreen.min.css rename to app/assets/stylesheets/froala/plugins/fullscreen.min.css diff --git a/app/assets/stylesheets/plugins/help.css b/app/assets/stylesheets/froala/plugins/help.css similarity index 100% rename from app/assets/stylesheets/plugins/help.css rename to app/assets/stylesheets/froala/plugins/help.css diff --git a/app/assets/stylesheets/plugins/help.min.css b/app/assets/stylesheets/froala/plugins/help.min.css similarity index 100% rename from app/assets/stylesheets/plugins/help.min.css rename to app/assets/stylesheets/froala/plugins/help.min.css diff --git a/app/assets/stylesheets/plugins/image.css b/app/assets/stylesheets/froala/plugins/image.css similarity index 100% rename from app/assets/stylesheets/plugins/image.css rename to app/assets/stylesheets/froala/plugins/image.css diff --git a/app/assets/stylesheets/plugins/image.min.css b/app/assets/stylesheets/froala/plugins/image.min.css similarity index 100% rename from app/assets/stylesheets/plugins/image.min.css rename to app/assets/stylesheets/froala/plugins/image.min.css diff --git a/app/assets/stylesheets/plugins/image_manager.css b/app/assets/stylesheets/froala/plugins/image_manager.css similarity index 100% rename from app/assets/stylesheets/plugins/image_manager.css rename to app/assets/stylesheets/froala/plugins/image_manager.css diff --git a/app/assets/stylesheets/plugins/image_manager.min.css b/app/assets/stylesheets/froala/plugins/image_manager.min.css similarity index 100% rename from app/assets/stylesheets/plugins/image_manager.min.css rename to app/assets/stylesheets/froala/plugins/image_manager.min.css diff --git a/app/assets/stylesheets/plugins/line_breaker.css b/app/assets/stylesheets/froala/plugins/line_breaker.css similarity index 100% rename from app/assets/stylesheets/plugins/line_breaker.css rename to app/assets/stylesheets/froala/plugins/line_breaker.css diff --git a/app/assets/stylesheets/plugins/line_breaker.min.css b/app/assets/stylesheets/froala/plugins/line_breaker.min.css similarity index 100% rename from app/assets/stylesheets/plugins/line_breaker.min.css rename to app/assets/stylesheets/froala/plugins/line_breaker.min.css diff --git a/app/assets/stylesheets/plugins/quick_insert.css b/app/assets/stylesheets/froala/plugins/quick_insert.css similarity index 100% rename from app/assets/stylesheets/plugins/quick_insert.css rename to app/assets/stylesheets/froala/plugins/quick_insert.css diff --git a/app/assets/stylesheets/plugins/quick_insert.min.css b/app/assets/stylesheets/froala/plugins/quick_insert.min.css similarity index 100% rename from app/assets/stylesheets/plugins/quick_insert.min.css rename to app/assets/stylesheets/froala/plugins/quick_insert.min.css diff --git a/app/assets/stylesheets/plugins/special_characters.css b/app/assets/stylesheets/froala/plugins/special_characters.css similarity index 100% rename from app/assets/stylesheets/plugins/special_characters.css rename to app/assets/stylesheets/froala/plugins/special_characters.css diff --git a/app/assets/stylesheets/plugins/special_characters.min.css b/app/assets/stylesheets/froala/plugins/special_characters.min.css similarity index 100% rename from app/assets/stylesheets/plugins/special_characters.min.css rename to app/assets/stylesheets/froala/plugins/special_characters.min.css diff --git a/app/assets/stylesheets/plugins/table.css b/app/assets/stylesheets/froala/plugins/table.css similarity index 100% rename from app/assets/stylesheets/plugins/table.css rename to app/assets/stylesheets/froala/plugins/table.css diff --git a/app/assets/stylesheets/plugins/table.min.css b/app/assets/stylesheets/froala/plugins/table.min.css similarity index 100% rename from app/assets/stylesheets/plugins/table.min.css rename to app/assets/stylesheets/froala/plugins/table.min.css diff --git a/app/assets/stylesheets/plugins/video.css b/app/assets/stylesheets/froala/plugins/video.css similarity index 100% rename from app/assets/stylesheets/plugins/video.css rename to app/assets/stylesheets/froala/plugins/video.css diff --git a/app/assets/stylesheets/plugins/video.min.css b/app/assets/stylesheets/froala/plugins/video.min.css similarity index 100% rename from app/assets/stylesheets/plugins/video.min.css rename to app/assets/stylesheets/froala/plugins/video.min.css diff --git a/app/assets/stylesheets/themes/dark.css b/app/assets/stylesheets/froala/themes/dark.css similarity index 100% rename from app/assets/stylesheets/themes/dark.css rename to app/assets/stylesheets/froala/themes/dark.css diff --git a/app/assets/stylesheets/themes/dark.min.css b/app/assets/stylesheets/froala/themes/dark.min.css similarity index 100% rename from app/assets/stylesheets/themes/dark.min.css rename to app/assets/stylesheets/froala/themes/dark.min.css diff --git a/app/assets/stylesheets/themes/gray.css b/app/assets/stylesheets/froala/themes/gray.css similarity index 100% rename from app/assets/stylesheets/themes/gray.css rename to app/assets/stylesheets/froala/themes/gray.css diff --git a/app/assets/stylesheets/themes/gray.min.css b/app/assets/stylesheets/froala/themes/gray.min.css similarity index 100% rename from app/assets/stylesheets/themes/gray.min.css rename to app/assets/stylesheets/froala/themes/gray.min.css diff --git a/app/assets/stylesheets/themes/red.css b/app/assets/stylesheets/froala/themes/red.css similarity index 100% rename from app/assets/stylesheets/themes/red.css rename to app/assets/stylesheets/froala/themes/red.css diff --git a/app/assets/stylesheets/themes/red.min.css b/app/assets/stylesheets/froala/themes/red.min.css similarity index 100% rename from app/assets/stylesheets/themes/red.min.css rename to app/assets/stylesheets/froala/themes/red.min.css diff --git a/app/assets/stylesheets/themes/royal.css b/app/assets/stylesheets/froala/themes/royal.css similarity index 100% rename from app/assets/stylesheets/themes/royal.css rename to app/assets/stylesheets/froala/themes/royal.css diff --git a/app/assets/stylesheets/themes/royal.min.css b/app/assets/stylesheets/froala/themes/royal.min.css similarity index 100% rename from app/assets/stylesheets/themes/royal.min.css rename to app/assets/stylesheets/froala/themes/royal.min.css diff --git a/app/assets/stylesheets/third_party/embedly.css b/app/assets/stylesheets/froala/third_party/embedly.css similarity index 100% rename from app/assets/stylesheets/third_party/embedly.css rename to app/assets/stylesheets/froala/third_party/embedly.css diff --git a/app/assets/stylesheets/third_party/embedly.min.css b/app/assets/stylesheets/froala/third_party/embedly.min.css similarity index 100% rename from app/assets/stylesheets/third_party/embedly.min.css rename to app/assets/stylesheets/froala/third_party/embedly.min.css diff --git a/app/assets/stylesheets/third_party/spell_checker.css b/app/assets/stylesheets/froala/third_party/spell_checker.css similarity index 100% rename from app/assets/stylesheets/third_party/spell_checker.css rename to app/assets/stylesheets/froala/third_party/spell_checker.css diff --git a/app/assets/stylesheets/third_party/spell_checker.min.css b/app/assets/stylesheets/froala/third_party/spell_checker.min.css similarity index 100% rename from app/assets/stylesheets/third_party/spell_checker.min.css rename to app/assets/stylesheets/froala/third_party/spell_checker.min.css diff --git a/lib/wysiwyg-rails/engine.rb b/lib/wysiwyg-rails/engine.rb index 65390ac4..68774a5f 100644 --- a/lib/wysiwyg-rails/engine.rb +++ b/lib/wysiwyg-rails/engine.rb @@ -5,15 +5,15 @@ module Rails class Engine < ::Rails::Engine initializer 'froala.assets.precompile', group: :all do |app| app.config.assets.precompile += %W( - froala_editor.min.js - plugins/*.js - languages/*.js - froala_editor.min.css - froala_style.min.css - plugins/*.css - themes/*.css + froala/froala_editor.min.js + froala/plugins/*.js + froala/languages/*.js + froala/froala_editor.min.css + froala/froala_style.min.css + froala/plugins/*.css + froala/themes/*.css ) end end end -end \ No newline at end of file +end