Skip to content

Commit

Permalink
bumped up to v0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
rorlab committed Dec 29, 2013
1 parent fd18929 commit e78e9ec
Show file tree
Hide file tree
Showing 12 changed files with 1,868 additions and 989 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
.bundle
.config
.yardoc
.DS_Store
Gemfile.lock
InstalledFiles
_yardoc
Expand Down
51 changes: 30 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,15 @@ The version of summernote-rails is matched with that of summernote editor.

Add the following gems to your application's Gemfile:

# for Rails 4.0
# for Rails 4.0.x
gem 'simple_form'
# for Rails 3.x

# for Rails 3.2.x
gem 'simple_form'

# You'll need to include the following dependencies of Summernote
gem 'bootstrap-sass'
gem 'font-awesome-rails'
gem 'font-awesome-sass'

# This is the right gem to use summernote editor in Rails projects.
gem 'summernote-rails'
Expand All @@ -36,7 +37,7 @@ First of all, the summernote editor works on Bootstrap and so it is assumed that

> Note that when using font-awesome-rails with bootstrap-sass, both FontAwesome & Glyphicon icons show up, overlapping. So if you have bootstrap_and_override.css.scss file, please add the following two code lines related with the Bootstrap's glyphicon:
In app/assets/stylesheets/bootstrap_and_override.css.scss,
In app/assets/stylesheets/bootstrap_and_override.css.scss,

```
$iconSpritePath: '';
Expand All @@ -62,7 +63,7 @@ And also, in app/assets/stylesheets/application.css, you should add the followin
*= require summernote
```

For example, if you made a `Post` model using `scaffold generator` of Rails, you would see the `post` form view template in app/views/posts/_form.html.erb.
For example, if you made a `Post` model using `scaffold generator` of Rails, you would see the `post` form view template in app/views/posts/_form.html.erb.

In that template file, you should add `summernote` class to the textarea input as the following:

Expand Down Expand Up @@ -93,16 +94,16 @@ $ ->
# to call summernote editor
summer_note.summernote
# to set options
height:300
height:300
# toolbar: [
# ['insert', ['picture', 'link']], // no insert buttons
# ["table", ["table"]],
# ["style", ["style"]],
# ["fontsize", ["fontsize"]],
# ["color", ["color"]],
# ["style", ["bold", "italic", "underline", "clear"]],
# ["para", ["ul", "ol", "paragraph"]],
# ["height", ["height"]],
# ["table", ["table"]],
# ["style", ["style"]],
# ["fontsize", ["fontsize"]],
# ["color", ["color"]],
# ["style", ["bold", "italic", "underline", "clear"]],
# ["para", ["ul", "ol", "paragraph"]],
# ["height", ["height"]],
# ["help", ["help"]]
#]
Expand All @@ -116,33 +117,41 @@ $ ->
true
```

That's it.
That's it.


## Sample projects
## Sample projects

- Rails 3.2.14 : http://github.com/rorlab/summernote-test-r3
- Rails 4.0 : http://github.com/rorlab/summernote-test
- Rails 3.2.16 : http://github.com/rorlab/summernote-test-r3
- Rails 4.0.2 : http://github.com/rorlab/summernote-test

## Changelogs

- v0.5.0 : Support i18n
* Updated with `v0.5 Summernote, 2013-12-29` as the followings:
* Support both Font-Awesome 3.x and 4.x
* CodeMirror as Codeview
* Insert Video (by cdownie)
* Support 5 Languages(by hendrismit, tschiela, inomies, cverond)
* Restructuring: jQuery build pattern

- v0.4.0 : Support both Bootstrap 3.0 and 2.x
* Updated with `v0.4 Summernote, 2013-11-01` as the followings:
* View mode
* Fullscreen
* Code view
* Image upload callback
- v0.3.0 : Added the resizing bar at the bottom of editor.
* Updated with `v0.3 Summernote, 2013-09-01` as the followings:
* Updated with `v0.3 Summernote, 2013-09-01` as the followings:
* `FIXED` bugs(image upload, fontsize, tab, recent color, ...)
* `ADDED` help dialog(keyboard shortcut)
* `ADDED` init options(event callbacks, custom toolbar)
* `ADDED` resize bar
* `ADDED` support IE8 Beta(some range bugs, can't insert Image)
- v0.2.1.4 : Enable to customize Toolbar Collection
- v0.2.1.4 : Enable to customize Toolbar Collection
- v0.2.1.3 : Added Help button in editor toolbox to popup Hot Key Table
- v0.2.1.2 : Added InsertHorizontalRule(Cmd+Enter) in summernote editor /
Added summernote.js
- v0.2.1.2 : Added InsertHorizontalRule(Cmd+Enter) in summernote editor /
Added summernote.js
- v0.2.1.1 : Available for Rails >= 3.1
- v0.2.1 : Bugfixed file uploading
- v0.2.0 : Available for Rails v4.0
Expand Down
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 Summernote
module Rails
VERSION = "0.4.0"
VERSION = "0.5.0"
end
end
Binary file removed vendor/assets/.DS_Store
Binary file not shown.
102 changes: 102 additions & 0 deletions vendor/assets/javascripts/lang/summernote-de-DE.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
(function ($) {
$.extend($.summernote.lang, {
'de-DE': {
font: {
bold: 'Fett',
italic: 'Kursiv',
underline: 'Unterstreichen',
strike: 'Durchgestrichen',
clear: 'Zurücksetzen',
height: 'Zeilenhöhe',
size: 'Schriftgröße'
},
image: {
image: 'Grafik',
insert: 'Grafik einfügen',
resizeFull: 'Originalgröße',
resizeHalf: 'Größe 1/2',
resizeQuarter: 'Größe 1/4',
floatLeft: 'Linksbündig',
floatRight: 'Rechtsbündig',
floatNone: 'Kein Textfluss',
dragImageHere: 'Ziehen Sie ein Bild mit der Maus hierher',
selectFromFiles: 'Wählen Sie eine Datei aus',
url: 'Grafik URL'
},
link: {
link: 'Link',
insert: 'Link einfügen',
unlink: 'Link entfernen',
edit: 'Editieren',
textToDisplay: 'Anzeigetext',
url: 'Ziel des Links?'
},
video: {
video: 'Video',
videoLink: 'Video Link',
insert: 'Insert Video',
url: 'Video URL?',
providers: '(YouTube, Vimeo, Vine, Instagram, or DailyMotion)'
},
table: {
table: 'Tabelle'
},
hr: {
insert: 'Eine horizontale Linie einfügen'
},
style: {
style: 'Stil',
normal: 'Normal',
blockquote: 'Zitat',
pre: 'Quellcode',
h1: 'Überschrift 1',
h2: 'Überschrift 2',
h3: 'Überschrift 3',
h4: 'Überschrift 4',
h5: 'Überschrift 5',
h6: 'Überschrift 6'
},
lists: {
unordered: 'Aufzählung',
ordered: 'Nummerieung'
},
options: {
help: 'Hilfe',
fullscreen: 'Vollbild',
codeview: 'HTML-Code anzeigen'
},
paragraph: {
paragraph: 'Absatz',
outdent: 'Einzug vergrößern',
indent: 'Einzug verkleinern',
left: 'Links ausrichten',
center: 'Zentriert ausrichten',
right: 'Rechts ausrichten',
justify: 'Blocksatz'
},
color: {
recent: 'Letzte Farbe',
more: 'Mehr Farben',
background: 'Hintergrundfarbe',
foreground: 'Schriftfarbe',
transparent: 'Transparenz',
setTransparent: 'Transparenz setzen',
reset: 'Zurücksetzen',
resetToDefault: 'Auf Standard zurücksetzen'
},
shortcut: {
shortcuts: 'Tastenkürzel',
close: 'Schließen',
textFormatting: 'Textformatierung',
action: 'Aktion',
paragraphFormatting: 'Absatzformatierung',
documentStyle: 'Dokumentenstil'
},
history: {
undo: 'Rückgängig',
redo: 'Wiederholen'
}

}
});
})(jQuery);
101 changes: 101 additions & 0 deletions vendor/assets/javascripts/lang/summernote-it-IT.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
(function ($) {
$.extend($.summernote.lang, {
'it-IT': {
font: {
bold: 'Testo in grassetto',
italic: 'Testo in corsivo',
underline: 'Testo sottolineato',
strike: 'Testo barrato',
clear: 'Elimina la formattazione del testo',
height: 'Altezza della linea di testo',
size: 'Dimensione del carattere'
},
image: {
image: 'Immagine',
insert: 'Inserisci Immagine',
resizeFull: 'Dimensioni originali',
resizeHalf: 'Ridimensiona al 50%',
resizeQuarter: 'Ridimensiona al 25%',
floatLeft: 'Posiziona a sinistra',
floatRight: 'Posiziona a destra',
floatNone: 'Nessun posizionamento',
dragImageHere: 'Trascina qui un\'immagine',
selectFromFiles: 'Scegli dai Documenti',
url: 'URL dell\'immagine'
},
link: {
link: 'Collegamento',
insert: 'Inserisci Collegamento',
unlink: 'Elimina collegamento',
edit: 'Modifica collegamento',
textToDisplay: 'Testo del collegamento',
url: 'URL del collegamento'
},
video: {
video: 'Video',
videoLink: 'Collegamento ad un Video',
insert: 'Inserisci Video',
url: 'URL del Video',
providers: '(YouTube, Vimeo, Vine, Instagram o DailyMotion)'
},
table: {
table: 'Tabella'
},
hr: {
insert: 'Inserisce una linea di separazione'
},
style: {
style: 'Stili',
normal: 'Normale',
blockquote: 'Citazione',
pre: 'Codice',
h1: 'Titolo 1',
h2: 'Titolo 2',
h3: 'Titolo 3',
h4: 'Titolo 4',
h5: 'Titolo 5',
h6: 'Titolo 6'
},
lists: {
unordered: 'Elenco non ordinato',
ordered: 'Elenco ordinato'
},
options: {
help: 'Aiuto',
fullscreen: 'Modalità a tutto schermo',
codeview: 'Visualizza codice'
},
paragraph: {
paragraph: 'Paragrafo',
outdent: 'Diminuisce il livello di rientro',
indent: 'Aumenta il livello di rientro',
left: 'Allinea a sinistra',
center: 'Centra',
right: 'Allinea a destra',
justify: 'Giustifica (allinea a destra e sinistra)'
},
color: {
recent: 'Ultimo colore utilizzato',
more: 'Altri colori',
background: 'Colore di sfondo',
foreground: 'Colore',
transparent: 'Trasparente',
setTransparent: 'Trasparente',
reset: 'Reimposta',
resetToDefault: 'Reimposta i colori'
},
shortcut: {
shortcuts: 'Scorciatoie da tastiera',
close: 'Chiudi',
textFormatting: 'Formattazione testo',
action: 'Azioni',
paragraphFormatting: 'Formattazione paragrafo',
documentStyle: 'Stili'
},
history: {
undo: 'Annulla',
redo: 'Ripristina'
}
}
});
})(jQuery);
Loading

0 comments on commit e78e9ec

Please sign in to comment.