Skip to content
Extraits de code Groupes Projets
Valider 432a555b rédigé par echarp's avatar echarp
Parcourir les fichiers

La gemme webshim est en place, offrant un calendrier pour les datetime pour...

La gemme webshim est en place, offrant un calendrier pour les datetime pour les navigateurs ne le gérant pas eux même
parent ffc82508
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -50,6 +50,7 @@ gem 'haml-rails'
gem 'compass-rails'
gem 'modernizr-rails'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'webshims-rails'
gem 'devise'
gem 'devise-i18n'
......
......@@ -285,6 +285,8 @@ GEM
warden (1.2.3)
rack (>= 1.0)
webrick (1.3.1)
webshims-rails (1.14.4)
rails (> 3.1.0)
PLATFORMS
ruby
......@@ -326,3 +328,4 @@ DEPENDENCIES
turbolinks
uglifier
webrick (>= 1.3.1)
webshims-rails
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require tinymce-jquery
//= require jquery.turbolinks
//= require turbolinks
//= require modernizr
//= require_tree .
# This is a manifest file that'll be compiled into application.js, which will include all the files
# listed below.
#
# Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
# or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
#
# It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
# compiled file.
#
# Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
# about supported directives.
#
#= require jquery
#= require jquery_ujs
#= require jquery.turbolinks
#= require turbolinks
#= require tinymce
#= require modernizr
#= require webshims/polyfiller
#= require_tree .
# Setup polyfills, so that older browsers can also take advanage of html5!
$.webshims.setOptions('basePath', '/assets/webshims/shims/')
$.webshims.polyfill('es5 forms forms-ext mediaelement')
$(document).ready ->
$(this).updatePolyfill()
tinyMCE.init {
selector: 'textarea',
language: 'fr_FR',
menubar : false,
toolbar: [
' bold italic strikethrough
| bullist numlist outdent indent
| alignleft aligncenter alignright alignjustify
| link media insertdatetime charmap table
| undo redo
| searchreplace spellchecker
| code visualblocks preview fullscreen'
],
plugins: 'lists, advlist, autolink, link, charmap, paste, print, preview,
table, fullscreen, searchreplace, media, insertdatetime, visualblocks,
visualchars, wordcount, contextmenu, code, spellchecker'
}
......@@ -33,8 +33,7 @@
:markdown
#{t '.description_helper'}
= f.label :description
= f.text_area :description, required: true, class: 'tinymce', rows: 29, cols: 80
= tinymce language: 'fr_FR'
= f.text_area :description, required: true, rows: 29, cols: 80
.field
= f.label :city
......
toolbar:
- undo redo | bold italic strikethrough | bullist numlist outdent indent | alignleft aligncenter alignright alignjustify | link media insertdatetime charmap table | searchreplace | code visualblocks preview fullscreen
plugins:
- lists
- advlist
- autolink
- link
- charmap
- paste
- print
- preview
- table
- fullscreen
- searchreplace
- media
- insertdatetime
- visualblocks
- visualchars
- wordcount
- contextmenu
- code
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter