diff --git a/Gemfile b/Gemfile index 6b7d562..2222e06 100755 --- a/Gemfile +++ b/Gemfile @@ -45,7 +45,7 @@ gem 'jquery-rails' gem 'formtastic', '~>2.2.1' gem 'formtastic-bootstrap', '~>2.1.3' #, :git => "git://github.com/mjbellantoni/formtastic-bootstrap.git" # TinyMCE -gem "tinymce-rails" , '~>3.5.8' +gem "tinymce-rails" , '~>4.1.0' # Internationalisierung #gem "globalize3" ,'~>3.0.4' diff --git a/app/assets/stylesheets/application.css.scss b/app/assets/stylesheets/application.css.scss index 9cd5a40..65e39bf 100755 --- a/app/assets/stylesheets/application.css.scss +++ b/app/assets/stylesheets/application.css.scss @@ -14,7 +14,7 @@ *= require 'calendars' *= require jquery.fileupload-ui * require 'bootstrap' - + *= require 'tinymce' */ // Colorshema #0A64A4 diff --git a/app/assets/stylesheets/themes/blue1/application.css.scss b/app/assets/stylesheets/themes/blue1/application.css.scss index 8f85488..2760907 100755 --- a/app/assets/stylesheets/themes/blue1/application.css.scss +++ b/app/assets/stylesheets/themes/blue1/application.css.scss @@ -100,4 +100,5 @@ $box-border: lightgray solid 1px; $box-border-radius:0px; $box-background: white; @import 'layout'; -@import 'calendars'; \ No newline at end of file +@import 'calendars'; +@import 'tinymce'; \ No newline at end of file diff --git a/app/assets/stylesheets/tinymce.css b/app/assets/stylesheets/tinymce.css new file mode 100644 index 0000000..ded5154 --- /dev/null +++ b/app/assets/stylesheets/tinymce.css @@ -0,0 +1,17 @@ +i.mce-i-fa { + font: 400 17px/1 FontAwesome; + padding: 0; + vertical-align: middle; + speak: none; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; + margin-left: -2px; + padding-right: 2px +} +i.fa-red { color:red; } + +.mc-important { + color: red; + font-weight:bold; + text-align: center; +} \ No newline at end of file diff --git a/app/views/fragen/_form.html.erb b/app/views/fragen/_form.html.erb index a445ffe..07f8b7d 100644 --- a/app/views/fragen/_form.html.erb +++ b/app/views/fragen/_form.html.erb @@ -10,5 +10,5 @@ <%= f.action :submit, :as => :input %> <% end %> <% end %> - - <%= tinymce %> +<%= tinymce :theme => "simple", :language => "de", :plugins => ["wordcount", "paste"] %> + <% tinymce :compact %> diff --git a/app/views/fragen/_rform.html.erb b/app/views/fragen/_rform.html.erb index 923744a..b772066 100644 --- a/app/views/fragen/_rform.html.erb +++ b/app/views/fragen/_rform.html.erb @@ -10,4 +10,4 @@ <%= f.action :submit, :as => :input %> <% end %> <% end %> - <%= tinymce %> + <%= tinymce :menubar=>false %> diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a07ee93..4b96b2e 100755 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -10,7 +10,7 @@ <%= stylesheet_link_tag "themes/"+theme_name+"/application", :media => "all" unless theme_name.empty? %> <%= stylesheet_link_tag "application", :media=>"all" if theme_name.empty? %> - <%= theme_stylesheet_link_tag "test", :media => "all" %> + <% theme_stylesheet_link_tag "test", :media => "all" %> <% theme_stylesheet_link_tag "mod", :media=>"all" %>