Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

Commit 03c7219

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents 8b19cc8 + 947bfef commit 03c7219

Some content is hidden

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

47 files changed

+1623
-9797
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,6 @@ examples/uploads/*
77
server.js
88
.tm_properties
99
.project
10+
reports
11+
.grunt/
12+
_SpecRunner.html

.jshintrc

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
{
2+
"globals": {
3+
"MediumEditor": true
4+
},
5+
26
"predef": {
37
"jQuery": false,
48
"document": false,
@@ -11,7 +15,16 @@
1115
"start": false,
1216
"sinon": false,
1317
"alert": false,
14-
"FB": false
18+
"FB": false,
19+
"describe": false,
20+
"it": false,
21+
"expect": false,
22+
"beforeEach": false,
23+
"afterEach": false,
24+
"jasmine": false,
25+
"spyOn": false,
26+
"placeCaret": false,
27+
"require": false
1528
},
1629

1730
"jquery" : true,
@@ -35,4 +48,4 @@
3548
"sub": true,
3649
"strict": false,
3750
"unused": true
38-
}
51+
}

CHANGES.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,53 @@
11

2+
2.2.1 / 2016-02-05
3+
==================
4+
5+
* Fix when `uploadCompleted()` is called - wait until uploaded image replaces preview
6+
* Fix uploading high quality images
7+
* Fix bug when an image toolbar action effects all instances of the editor (when using multiple editors on the same page)
8+
9+
2.2.0 / 2016-01-11
10+
==================
11+
12+
* Add ```fileDeleteOptions``` option to images
13+
14+
2.1.1 / 2015-11-23
15+
==================
16+
17+
* Fix context for sorting function
18+
* Add support for editor's ```elementsContainer``` option
19+
20+
2.1.0 / 2015-10-27
21+
==================
22+
23+
* Add support for ```editableInput``` event
24+
* Add support for textarea
25+
* Add ```deleteMethod``` option
26+
27+
2.0.1 / 2015-06-11
28+
==================
29+
30+
* Fix ```hideButtons``` function
31+
32+
2.0.0 / 2015-06-09
33+
==================
34+
35+
* **This version works for MediumEditor ```v4.12.0``` and up, because in ```v4.12.0``` MediumEditor changed the way to retrieve extension**
36+
* Remove deprecated images options: ```uploadScript``` and ```formData```. Use ```fileUploadOptions``` instead.
37+
* Add ```video-vimeo``` and ```video-youtube``` classes to embedded videos to allow css customization
38+
39+
1.7.0 / 2015-05-11
40+
==================
41+
42+
* Version bump to 1.7.0, because 1.6.2 added file type and size validation which should cause a minor version bump, not only a patch
43+
44+
1.6.2 / 2015-05-11
45+
==================
46+
47+
* Fix file type and file size validation
48+
* Add a rotate animation on button
49+
* Speed up Travis build
50+
251
1.6.1 / 2015-04-30
352
==================
453

Gruntfile.js

Lines changed: 31 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = function(grunt) {
1+
module.exports = function (grunt) {
22
// show elapsed time at the end
33
require('time-grunt')(grunt);
44
// load grunt tasks just in time
@@ -34,15 +34,37 @@ module.exports = function(grunt) {
3434
options: {
3535
jshintrc: true
3636
},
37-
files: ['src/js/*.js', '!src/js/templates.js', 'test/*.js']
37+
files: ['src/js/*.js', '!src/js/templates.js', 'spec/*.js']
3838
},
3939

40-
blanket_qunit: {
41-
options: {
42-
urls: ['test.html?coverage=true&gruntReport'],
43-
threshold: 70
44-
},
45-
unit: {}
40+
jasmine: {
41+
suite: {
42+
src: 'src/js/*.js',
43+
options: {
44+
specs: ['spec/*.spec.js'],
45+
helpers: 'spec/helpers/*.js',
46+
vendor: [
47+
'bower_components/jquery/dist/jquery.min.js',
48+
'bower_components/medium-editor/dist/js/medium-editor.min.js',
49+
'bower_components/handlebars/handlebars.runtime.min.js',
50+
'bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js',
51+
'bower_components/blueimp-file-upload/js/jquery.iframe-transport.js',
52+
'bower_components/blueimp-file-upload/js/jquery.fileupload.js',
53+
'bower_components/jquery-sortable/source/js/jquery-sortable-min.js'
54+
],
55+
template: require('grunt-template-jasmine-istanbul'),
56+
templateOptions: {
57+
coverage: 'reports/jasmine/coverage.json',
58+
report: [{
59+
type: 'lcov',
60+
options: {
61+
dir: 'reports/jasmine/lcov'
62+
}
63+
}]
64+
},
65+
summary: true
66+
}
67+
}
4668
},
4769

4870
sass: {
@@ -121,7 +143,7 @@ module.exports = function(grunt) {
121143
}
122144
});
123145

124-
grunt.registerTask('test', ['jshint', 'blanket_qunit']);
146+
grunt.registerTask('test', ['jshint', 'jasmine']);
125147
grunt.registerTask('js', ['test', 'handlebars', 'uglify', 'concat']);
126148
grunt.registerTask('css', ['sass', 'autoprefixer', 'csso', 'usebanner']);
127149
grunt.registerTask('default', ['js', 'css']);

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
# jQuery insert plugin for MediumEditor
22

3+
[![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/orthes/medium-editor-insert-plugin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)
34
[![Build Status](https://travis-ci.org/orthes/medium-editor-insert-plugin.png)](https://travis-ci.org/orthes/medium-editor-insert-plugin)
45
[![Dependency Status](http://www.versioneye.com/user/projects/53f742dce09da3467d000389/badge.svg?style=flat)](http://www.versioneye.com/user/projects/53f742dce09da3467d000389)
56
[![Dependency Status](http://www.versioneye.com/user/projects/53f742e2e09da3dca800038f/badge.svg?style=flat)](http://www.versioneye.com/user/projects/53f742e2e09da3dca800038f)
67
[![Codacy Badge](https://www.codacy.com/project/badge/1f8565ed2e554e4fa952ec4da6a2080b)](https://www.codacy.com/public/orthes/mediumeditorinsertplugin)
7-
[![Stories in Ready](https://badge.waffle.io/orthes/medium-editor-insert-plugin.svg?label=ready&title=Ready)](http://waffle.io/orthes/medium-editor-insert-plugin)
88

9-
This plugin expands capabilities of [MediumEditor](https://github.com/daviferreira/medium-editor) (a clone of medium.com WYSIWYG editor) and it enables users to insert into the editor various types of content (depending on available addons).
9+
This plugin expands capabilities of [MediumEditor](https://github.com/yabwe/medium-editor) (a clone of medium.com WYSIWYG editor) and it enables users to insert into the editor various types of content (depending on available addons).
1010

1111
Current available addons:
1212

@@ -21,7 +21,7 @@ Current available addons:
2121

2222
## Download
2323

24-
* Bower (recommended): ```bower install medium-editor-insert-plugin#^1.0 --save```
24+
* Bower (recommended): ```bower install medium-editor-insert-plugin#^2.1 --save```
2525
* Manual: [Download the latest release](https://github.com/orthes/medium-editor-insert-plugin/releases)
2626

2727

@@ -69,11 +69,11 @@ $(function () {
6969

7070
## [Documentation](https://github.com/orthes/medium-editor-insert-plugin/wiki)
7171

72-
- [Getting Started](https://github.com/orthes/medium-editor-insert-plugin/wiki/v1.0-Getting-Started)
73-
- [Configuration](https://github.com/orthes/medium-editor-insert-plugin/wiki/v1.0-Configuration)
74-
- [Server response](https://github.com/orthes/medium-editor-insert-plugin/wiki/Server-response)
75-
- [Custom addons](https://github.com/orthes/medium-editor-insert-plugin/wiki/v1.0-Custom-addons)
76-
- [Upgrading from v0.3](https://github.com/orthes/medium-editor-insert-plugin/wiki/v1.0-Upgrading-from-v0.3)
72+
- [Getting Started](https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Getting-Started)
73+
- [Configuration](https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Configuration)
74+
- [Server response](https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Server-response)
75+
- [Custom addons](https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Custom-addons)
76+
- [Upgrading from v0.3](https://github.com/orthes/medium-editor-insert-plugin/wiki/v2.x-Upgrading-from-v0.3)
7777
- [Versioning](https://github.com/orthes/medium-editor-insert-plugin/wiki/Versioning)
7878
- [Development & Contributing](https://github.com/orthes/medium-editor-insert-plugin/wiki/Development-&-Contributing)
7979
- [License](https://github.com/orthes/medium-editor-insert-plugin/wiki/License)
@@ -82,6 +82,6 @@ $(function () {
8282

8383
## Sponsors
8484

85-
[creator5](http://www.creator5.com) | [Maker](http://maker.me) | [Nusii](http://nusii.com)
85+
[creator5](http://www.creator5.com) | [Maker](https://maker.me/) | [Nusii](http://nusii.com)
8686
-------- | ----- | -----
87-
[![creator5](http://i.imgur.com/K9uiIuT.png)](http://www.creator5.com) | [![Maker](http://i.imgur.com/8t8wsM8.png)](http://maker.me) | [![nusii](http://i.imgur.com/tvdJ249.png)](http://nusii.com)
87+
[![creator5](http://i.imgur.com/K9uiIuT.png)](http://www.creator5.com) | [![Maker](http://i.imgur.com/8t8wsM8.png)](http://maker.me) | [![nusii](http://i.imgur.com/tvdJ249.png)](http://nusii.com)

bower.json

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "medium-editor-insert-plugin",
3-
"version": "1.6.1",
3+
"version": "2.2.1",
44
"description": "jQuery insert plugin for MediumEditor",
55
"main": [
66
"dist/js/medium-editor-insert-plugin.js",
@@ -14,24 +14,19 @@
1414
"**/.*",
1515
"node_modules",
1616
"bower_components",
17-
"test",
18-
"test.html",
17+
"spec",
1918
"examples",
2019
"Gruntfile.js",
2120
"package.json"
2221
],
2322
"dependencies": {
2423
"jquery": ">=1.9.0",
25-
"medium-editor": "^4.1.1",
26-
"handlebars": "~3.0.0",
27-
"blueimp-file-upload": "~9.9.0",
24+
"medium-editor": "~5.10",
25+
"handlebars": "~4.0.0",
26+
"blueimp-file-upload": "~9.11.1",
2827
"jquery-sortable": "~0.9.12"
2928
},
3029
"devDependencies": {
31-
"qunit": "~1.18.0",
32-
"sinon": "~1.14.1",
33-
"sinon-qunit": "~2.0.0",
34-
"jquery-cycle2": "~2.1.6",
35-
"blanket": "~1.1.5"
30+
"jquery-cycle2": "~2.1.6"
3631
}
3732
}

dist/css/medium-editor-insert-plugin-frontend.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v1.6.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.2.1 - jQuery insert plugin for MediumEditor
33
*
44
* https://github.com/orthes/medium-editor-insert-plugin
55
*
@@ -81,4 +81,3 @@
8181
outline: 0 solid transparent; }
8282
.medium-insert-images figure figcaption:focus, .mediumInsert figure figcaption:focus, .medium-insert-embeds figure figcaption:focus, .mediumInsert-embeds figure figcaption:focus {
8383
outline: 0 solid transparent; }
84-

dist/css/medium-editor-insert-plugin-frontend.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/medium-editor-insert-plugin.css

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* medium-editor-insert-plugin v1.6.1 - jQuery insert plugin for MediumEditor
2+
* medium-editor-insert-plugin v2.2.1 - jQuery insert plugin for MediumEditor
33
*
44
* https://github.com/orthes/medium-editor-insert-plugin
55
*
@@ -140,7 +140,8 @@
140140
left: 55px;
141141
top: -32px; }
142142
.medium-editor-insert-plugin .medium-insert-buttons .medium-insert-buttons-addons li {
143-
display: inline-block; }
143+
display: inline-block;
144+
background-color: #fff; }
144145
.medium-editor-insert-plugin .medium-insert-buttons .medium-insert-buttons-addons li a {
145146
box-sizing: border-box;
146147
display: inline-block;

0 commit comments

Comments
 (0)