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

Commit

Permalink
v2.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
linkesch committed Aug 8, 2016
1 parent 3a54805 commit 885d357
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 14 deletions.
10 changes: 10 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,14 @@

2.4.0. / 2016-08-08
==================

* Add storeMeta option (#333)
* Remove progressbar on serialize (#375)
* Encode/decode data-embed-code attribute (#374)
* Remove default upload url from the code (#373)
* Fix editor being submitted by clicking on the plugin buttons (#366)
* Fix button position (#359)

2.3.3 / 2016-07-20
==================

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor-insert-plugin",
"version": "2.3.3",
"version": "2.4.0",
"description": "jQuery insert plugin for MediumEditor",
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
"main": [
Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin-frontend.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v2.3.3 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v2.4.0 - jQuery insert plugin for MediumEditor
*
* http://linkesch.com/medium-editor-insert-plugin
*
Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin-frontend.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v2.3.3 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v2.4.0 - jQuery insert plugin for MediumEditor
*
* http://linkesch.com/medium-editor-insert-plugin
*
Expand Down
2 changes: 1 addition & 1 deletion dist/css/medium-editor-insert-plugin.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 8 additions & 5 deletions dist/js/medium-editor-insert-plugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* medium-editor-insert-plugin v2.3.3 - jQuery insert plugin for MediumEditor
* medium-editor-insert-plugin v2.4.0 - jQuery insert plugin for MediumEditor
*
* http://linkesch.com/medium-editor-insert-plugin
*
Expand Down Expand Up @@ -308,11 +308,13 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
var $data = $('<div />').html(data[key].value);

$data.find('.medium-insert-buttons').remove();
$data.find('.medium-insert-active').removeClass('medium-insert-active');

// Restore original embed code from embed wrapper attribute value.
$data.find('[data-embed-code]').each(function () {
var $this = $(this);
$this.html($this.attr('data-embed-code'));
var $this = $(this),
html = $('<div />').html($this.attr('data-embed-code')).text();
$this.html(html);
});

data[key].value = $data.html();
Expand Down Expand Up @@ -1251,7 +1253,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
// Store embed code with <script> tag inside wrapper attribute value.
// Make nice attribute value escaping using jQuery.
$div = $('<div>')
.attr('data-embed-code', html)
.attr('data-embed-code', $('<div />').text(html).html())
.html(html);
html = $('<div>').append($div).html();
}
Expand Down Expand Up @@ -1587,7 +1589,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
captionPlaceholder: 'Type caption for image (optional)',
autoGrid: 3,
fileUploadOptions: { // See https://github.com/blueimp/jQuery-File-Upload/wiki/Options
url: 'upload.php',
url: null,
acceptFileTypes: /(\.|\/)(gif|jpe?g|png)$/i
},
fileDeleteOptions: {},
Expand Down Expand Up @@ -1750,6 +1752,7 @@ this["MediumInsert"]["Templates"]["src/js/templates/images-toolbar.hbs"] = Handl
var $data = $('<div />').html(data[key].value);

$data.find('.medium-insert-images').find('figcaption, figure').removeAttr('contenteditable');
$data.find('.medium-insert-images-progress').remove();

data[key].value = $data.html();
});
Expand Down
6 changes: 3 additions & 3 deletions dist/js/medium-editor-insert-plugin.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medium-editor-insert-plugin",
"version": "2.3.3",
"version": "2.4.0",
"description": "jQuery insert plugin for MediumEditor",
"main": "dist/js/medium-editor-insert-plugin.js",
"homepage": "http://linkesch.com/medium-editor-insert-plugin",
Expand Down

0 comments on commit 885d357

Please sign in to comment.