Skip to content

Commit 79b50f5

Browse files
committed
Merge pull request summernote#752 from HackerWins/develop
v0.6.0
2 parents 16f6437 + 173a54f commit 79b50f5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+3321
-2355
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@
55
# node modules
66
node_modules
77
bower_components
8-
*.sublime*
8+
*.sublime*
9+
.build*

.travis.yml

-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
language: node_js
22
node_js:
33
- 0.10
4-
branches:
5-
only:
6-
- master
74
before_script:
85
- node --version
96
- npm --version

Gruntfile.js

+32-2
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,12 @@ module.exports = function (grunt) {
3535
jshint: {
3636
all: {
3737
src: [
38-
'src/**/*.js', 'Gruntfile.js', 'test/**/*.js', 'build/*.js'
38+
'src/**/*.js',
39+
'plugin/**/*.js',
40+
'lang/**/*.js',
41+
'Gruntfile.js',
42+
'test/**/*.js',
43+
'build/*.js'
3944
],
4045
options: {
4146
jshintrc: true
@@ -98,10 +103,26 @@ module.exports = function (grunt) {
98103
livereload: true
99104
}
100105
}
106+
},
107+
108+
// Meteor commands to test and publish package
109+
shell: {
110+
'meteor-test': {
111+
command: 'meteor/runtests.sh',
112+
options: {
113+
execOptions: {
114+
killSignal: 'SIGKILL'
115+
}
116+
}
117+
},
118+
'meteor-publish': {
119+
command: 'meteor/publish.sh'
120+
}
101121
}
122+
102123
});
103124

104-
// load grunt tasks on package.json.
125+
// load all tasks from the grunt plugins used in this file
105126
require('load-grunt-tasks')(grunt);
106127

107128
// server
@@ -118,4 +139,13 @@ module.exports = function (grunt) {
118139

119140
// default: build, test, dist.
120141
grunt.registerTask('default', ['dist']);
142+
143+
// Meteor tasks
144+
grunt.registerTask('meteor-test', 'shell:meteor-test');
145+
grunt.registerTask('meteor-publish', 'shell:meteor-publish');
146+
// Ideally we'd run tests before publishing, but the chances of tests breaking (given that
147+
// Meteor is orthogonal to the library) are so small that it's not worth the maintainer's time
148+
// grunt.regsterTask('meteor', ['shell:meteor-test', 'shell:meteor-publish']);
149+
grunt.registerTask('meteor', 'shell:meteor-publish');
150+
121151
};

History.md

+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
### Change Log
2+
3+
#### v0.6 2014-11-29
4+
* Plugin system
5+
* Extract fontstyle and video plugins from base code.
6+
7+
#### v0.5.9 2014-09-21
8+
* Dom Editing: insert(Un)OrderedList, indent/outdent
9+
* History in a line.
10+
11+
#### v0.5.8 2014-08-31
12+
* Remove `autoFormatRange` option
13+
* Fixed `onChange` issues
14+
15+
#### v0.5.7 ~ v0.5.4 2014-08-29 ~ 2014-08-23
16+
* Dom editing: insertPara, insertNode
17+
18+
#### v0.5.3 2014-07-25
19+
* Extract codemirror.autoFormatOnStart option
20+
* Bug patch (createLink)
21+
22+
#### v0.5.2 2014-07-20
23+
* Air Mode
24+
* And bug patch (scroll, createLink, ...)
25+
26+
#### v0.5.1 2014-03-16
27+
* Support 15 Languages(https://github.com/HackerWins/summernote/tree/master/lang)
28+
* Add local-server for develop summernote.
29+
* Font style: Font-Family
30+
* And Bug patch.
31+
32+
#### v0.5 2013-12-29
33+
* Support both Font-Awesome 3.x and 4.x
34+
* CodeMirror as Codeview
35+
* Insert Video (by cdownie)
36+
* Support 5 Languages(by hendrismit, tschiela, inomies, cverond)
37+
* Restructuring: jQuery build pattern
38+
39+
#### v0.4 2013-11-01
40+
* Support both Bootstrap 3.0 and 2.x
41+
* Fullscreen
42+
* Codeview
43+
* Image Upload callback
44+
45+
#### v0.3 2013-09-01
46+
* Bugs(image upload, fontsize, tab, recent color, ...)
47+
* Help dialog(keyboard shortcut)
48+
* Init options(event callbacks, custom toolbar)
49+
* Resize bar
50+
* Support IE8 Beta(some range bugs, can't insert Image)
51+
52+
#### v0.2, 2013-08-01
53+
* Undo/Redo
54+
* Image sizing handle and popover
55+
* Support standalone css
56+
* Support Multiple Editor
57+
* Remove jQuery.curstyles dependency
58+
59+
#### v0.1, 2013-07-01
60+
* Font style: size, color, bold, italic, underline, remove font style
61+
* Para style: bullet, align, outdent, indent, line height
62+
* Image: drag & drop, dialog
63+
* Link: popover and dialog
64+
* Table: create table with dimension picker

README.md

+36-91
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,38 @@
11
# Summernote
2-
Super Simple WYSIWYG Editor on Bootstrap(3.0 and 2.x).
2+
Super simple WYSIWYG Editor using Bootstrap (3.0 and 2.x).
33

44
[![Build Status](https://secure.travis-ci.org/HackerWins/summernote.png)](http://travis-ci.org/HackerWins/summernote)
55

66
### Summernote
7-
Summernote is a javascript program that helps you to create WYSIWYG Editor on web.
7+
Summernote is a JavaScript library that helps you create WYSIWYG editors online.
88

99
Home Page: http://hackerwins.github.io/summernote/
1010

1111
### Why Summernote?
1212

13-
Summernote has something specials no like others.
13+
Summernote has a few special features:
14+
15+
* Paste images from clipboard
16+
* Saves images directly in the content of the field using base64 encoding, so you don't need to implement image handling at all
1417
* Simple UI
15-
* Interative WYSIWYG editing
18+
* Interactive WYSIWYG editing
1619
* Handy integration with server
1720

1821
#### Inspired by
19-
* Gmail WYSIWYG Editor (http://www.gmail.com)
22+
* Gmail's WYSIWYG editor (http://www.gmail.com)
2023
* Redactor (http://imperavi.com/redactor/)
2124

22-
### Easy to install
25+
### Installation and dependencies
26+
27+
Summernote uses opensouce libraries: [jQuery](http://jquery.com/), [Bootstrap](http://getbootstrap.com), [Font Awesome](https://github.com/FortAwesome/Font-Awesome).
28+
29+
For [Meteor](http://github.com/meteor/meteor), just run `meteor add summernote:summernote`. More info in the [Meteor README](meteor/README.md).
2330

24-
Summernote uses opensouce libraries(jQuery, bootstrap, fontAwesome)
31+
For other/no frameworks:
2532

26-
#### 01. include js/css
33+
#### 1. include JS/CSS
2734

28-
Include Following code into `<head>` tag of your HTML:
35+
Include the following code in the `<head>` tag of your HTML:
2936

3037
```html
3138
<!-- include libraries(jQuery, bootstrap, fontawesome) -->
@@ -39,113 +46,51 @@ Include Following code into `<head>` tag of your HTML:
3946
<script src="summernote.min.js"></script>
4047
```
4148

42-
If your summernote download is placed in a different folder, don't forget to change file's paths.
49+
#### 2. target elements
50+
51+
Then place a `div` tag somewhere in the `body` tag. This element will be replaced with the summernote editor.
4352

44-
#### 02. target elements
45-
And place `div` tag to somewhere in the `body` tag. This element will be placed by the visual representation of the summernote.
4653
```html
4754
<div id="summernote">Hello Summernote</div>
4855
```
4956

50-
#### 03. summernote
51-
Finally, run script after document ready.
57+
#### 3. summernote
58+
59+
Finally, run this script after the DOM is ready:
60+
5261
```javascript
5362
$(document).ready(function() {
5463
$('#summernote').summernote();
5564
});
5665
```
5766

5867
### API
59-
Get HTML `code` if you need.
68+
69+
`code` - get the HTML source code underlying the text in the editor:
6070

6171
```javascript
6272
var sHTML = $('#summernote').code();
6373
```
6474

65-
`Destroy` summernote.
75+
`Destroy` summernote:
6676

6777
```javascript
6878
$('#summernote').destroy();
6979
```
7080

71-
#### Dependencies
72-
* jQuery: http://jquery.com/
73-
* Bootstrap: http://getbootstrap.com (both 2.x and 3.x)
74-
* fontAwesome: https://github.com/FortAwesome/Font-Awesome (both 3.x and 4.x)
81+
### Supported platforms
7582

76-
### Supported platform
77-
* Modern Browser (Safari, Chrome, Firefox, Opera, Internet Explorer 9+)
78-
* OS (Windows, Mac, Linux)
83+
Any modern browser: Safari, Chrome, Firefox, Opera, Internet Explorer 9+.
7984

8085
### Upcoming Features
81-
* Responsive Toolbar
82-
* Table: Handles(Sizing, Selection) and Popover
83-
* support IE8
84-
* Clipboard
85-
* Media Object Selection
86-
87-
### Change Log
88-
89-
#### v0.5.9 2014-09-21
90-
* Dom Editing: insert(Un)OrderedList, indent/outdent
91-
* History in a line.
92-
93-
#### v0.5.8 2014-08-31
94-
* Remove `autoFormatRange` option
95-
* Fixed `onChange` issues
96-
97-
#### v0.5.7 ~ v0.5.4 2014-08-29 ~ 2014-08-23
98-
* Dom editing: insertPara, insertNode
99-
100-
#### v0.5.3 2014-07-25
101-
* Extract codemirror.autoFormatOnStart option
102-
* Bug patch (createLink)
103-
104-
#### v0.5.2 2014-07-20
105-
* Air Mode
106-
* And bug patch (scroll, createLink, ...)
107-
108-
#### v0.5.1 2014-03-16
109-
* Support 15 Languages(https://github.com/HackerWins/summernote/tree/master/lang)
110-
* Add local-server for develop summernote.
111-
* Font style: Font-Family
112-
* And Bug patch.
113-
114-
#### v0.5 2013-12-29
115-
* Support both Font-Awesome 3.x and 4.x
116-
* CodeMirror as Codeview
117-
* Insert Video (by cdownie)
118-
* Support 5 Languages(by hendrismit, tschiela, inomies, cverond)
119-
* Restructuring: jQuery build pattern
120-
121-
#### v0.4 2013-11-01
122-
* Support both Bootstrap 3.0 and 2.x
123-
* Fullscreen
124-
* Codeview
125-
* Image Upload callback
126-
127-
#### v0.3 2013-09-01
128-
* Bugs(image upload, fontsize, tab, recent color, ...)
129-
* Help dialog(keyboard shortcut)
130-
* Init options(event callbacks, custom toolbar)
131-
* Resize bar
132-
* Support IE8 Beta(some range bugs, can't insert Image)
133-
134-
#### v0.2, 2013-08-01
135-
* Undo/Redo
136-
* Image sizing handle and popover
137-
* Support standalone css
138-
* Support Multiple Editor
139-
* Remove jQuery.curstyles dependency
140-
141-
#### v0.1, 2013-07-01
142-
* Font style: size, color, bold, italic, underline, remove font style
143-
* Para style: bullet, align, outdent, indent, line height
144-
* Image: drag & drop, dialog
145-
* Link: popover and dialog
146-
* Table: create table with dimension picker
147-
148-
### for Hacker
86+
* Responsive toolbar
87+
* Table: Handles (sizing, selection) and popover
88+
* IE8 Support
89+
* Clipboard (you can paste images already)
90+
* Media object selection
91+
92+
93+
### Developer information
14994

15095
#### structure of summernote.js
15196

bower.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "summernote",
3-
"version": "0.5.10",
3+
"version": "0.6.0",
44
"main": [
55
"./dist/summernote.js",
66
"./dist/summernote.css"

dist/summernote.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)