Skip to content

Commit

Permalink
Merge pull request #30 from san/master
Browse files Browse the repository at this point in the history
Update assets to 0.6.9 and bump up version to 0.6.9.0
  • Loading branch information
hackerwins committed Jul 10, 2015
2 parents 8c7ed6e + c322a8f commit 8de161e
Show file tree
Hide file tree
Showing 5 changed files with 230 additions and 122 deletions.
2 changes: 1 addition & 1 deletion lib/summernote-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module SummernoteRails
module Rails
VERSION = "0.6.7.0"
VERSION = "0.6.9.0"
end
end
16 changes: 12 additions & 4 deletions vendor/assets/javascripts/summernote/locales/fr-FR.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
name: 'Famille de police',
strikethrough: 'Barré',
superscript: 'Exposant',
subscript: 'Indicé',
subscript: 'Indice',
size: 'Taille de police'
},
image: {
Expand All @@ -22,8 +22,15 @@
floatLeft: 'Aligné à gauche',
floatRight: 'Aligné à droite',
floatNone: 'Pas d\'alignement',
dragImageHere: 'Faites glisser une image avec la souris dans ce cadre',
shapeRounded: 'Forme: Rectangle arrondie',
shapeCircle: 'Forme: Cercle',
shapeThumbnail: 'Forme: Vignette',
shapeNone: 'Forme: Aucune',
dragImageHere: 'Faites glisser une image ou un texte dans ce cadre',
dropImage: 'Lachez l\'image ou le texte',
selectFromFiles: 'Choisir un fichier',
maximumFileSize: 'Taille de fichier maximale',
maximumFileSizeError: 'Taille maximale du fichier dépassée',
url: 'URL de l\'image',
remove: 'Supprimer l\'image'
},
Expand All @@ -40,7 +47,7 @@
table: 'Tableau'
},
hr: {
insert: 'Insérer une ligne horizontale de séparation'
insert: 'Insérer une ligne horizontale'
},
style: {
style: 'Style',
Expand Down Expand Up @@ -88,7 +95,8 @@
textFormatting: 'Mise en forme du texte',
action: 'Action',
paragraphFormatting: 'Mise en forme des paragraphes',
documentStyle: 'Style du document'
documentStyle: 'Style du document',
extraKeys: 'Touches supplémentaires'
},
history: {
undo: 'Annuler la dernière action',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@
* @property {Function} buttons.helloImage function to make button
*/
buttons: { // buttons
hello: function () {
hello: function (lang, options) {

return tmpl.iconButton('fa fa-header', {
return tmpl.iconButton(options.iconPrefix + 'header', {
event : 'hello',
title: 'hello',
hide: true
});
},
helloDropdown: function () {
helloDropdown: function (lang, options) {


var list = '<li><a data-event="helloDropdown" href="#" data-value="summernote">summernote</a></li>';
list += '<li><a data-event="helloDropdown" href="#" data-value="codemirror">Code Mirror</a></li>';
var dropdown = '<ul class="dropdown-menu">' + list + '</ul>';

return tmpl.iconButton('fa fa-header', {
return tmpl.iconButton(options.iconPrefix + 'header', {
title: 'hello',
hide: true,
dropdown : dropdown
});
},
helloImage : function () {
return tmpl.iconButton('fa fa-file-image-o', {
helloImage : function (lang, options) {
return tmpl.iconButton(options.iconPrefix + 'file-image-o', {
event : 'helloImage',
title: 'helloImage',
hide: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
var dmRegExp = /.+dailymotion.com\/(video|hub)\/([^_]+)[^#]*(#video=([^_&]+))?/;
var dmMatch = url.match(dmRegExp);

var youkuRegExp = /\/\/v\.youku\.com\/v_show\/id_(\w+)\.html/;
var youkuRegExp = /\/\/v\.youku\.com\/v_show\/id_(\w+)=*\.html/;
var youkuMatch = url.match(youkuRegExp);

var mp4RegExp = /^.+.(mp4|m4v)$/;
Expand Down Expand Up @@ -204,8 +204,8 @@
* @property {function(object): string} buttons.video
*/
buttons: {
video: function (lang) {
return tmpl.iconButton('fa fa-youtube-play', {
video: function (lang, options) {
return tmpl.iconButton(options.iconPrefix + 'youtube-play', {
event: 'showVideoDialog',
title: lang.video.video,
hide: true
Expand Down
Loading

0 comments on commit 8de161e

Please sign in to comment.