Skip to content

Commit

Permalink
5.23.3
Browse files Browse the repository at this point in the history
  • Loading branch information
j0k3r committed Dec 20, 2017
1 parent f084da4 commit eef3ee0
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 9 deletions.
12 changes: 12 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
5.23.3 / 2017-12-20
==================
* Fix medium-editor-insert plugin css fixes on beagle theme #1361
* Update jsDelivr links #1366 & #1367
* Fix Firefox console warning causing issues #1370
* Do not check only for null targets or it will fail when it's undefined. #1373
* Fix crash when 'extensions' in 'isElementDescendantOfExtension' is undefined #1362
* Fix Jasmine Unit Test errors #1385
* Fix null error on pastedPlain.split #1397
* Fix broken browser tests #1396


5.23.2 / 2017-08-02
==================
* Add noopener & noreferrer into targetBlank #1355
Expand Down
3 changes: 3 additions & 0 deletions dist/css/themes/beagle.css
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,6 @@
.medium-editor-anchor-preview a {
color: #ccc;
text-decoration: none; }

.medium-editor-toolbar-actions li, .medium-editor-toolbar-actions button {
border-radius: 50px; }
2 changes: 1 addition & 1 deletion dist/css/themes/beagle.min.css

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

14 changes: 11 additions & 3 deletions dist/js/medium-editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2452,6 +2452,10 @@ MediumEditor.extensions = {};
'use strict';

function isElementDescendantOfExtension(extensions, element) {
if (!extensions) {
return false;
}

return extensions.some(function (extension) {
if (typeof extension.getInteractionElements !== 'function') {
return false;
Expand Down Expand Up @@ -2502,7 +2506,7 @@ MediumEditor.extensions = {};
win = this.base.options.contentWindow,
doc = this.base.options.ownerDocument;

if (targets !== null) {
if (targets) {
targets = MediumEditor.util.isElement(targets) || [win, doc].indexOf(targets) > -1 ? [targets] : targets;

Array.prototype.forEach.call(targets, function (target) {
Expand Down Expand Up @@ -5345,6 +5349,10 @@ MediumEditor.extensions = {};
return this.cleanPaste(pastedHTML);
}

if (!pastedPlain) {
return;
}

if (!(this.getEditorOption('disableReturn') || (editable && editable.getAttribute('data-disable-return')))) {
paragraphs = pastedPlain.split(/[\r\n]+/g);
// If there are no \r\n in data, don't wrap in <p>
Expand Down Expand Up @@ -6935,7 +6943,7 @@ MediumEditor.extensions = {};
for (var i = 0, n = atts.length; i < n; i++) {
// do not re-create existing attributes
if (!div.hasAttribute(atts[i].nodeName)) {
div.setAttribute(atts[i].nodeName, atts[i].nodeValue);
div.setAttribute(atts[i].nodeName, atts[i].value);
}
}

Expand Down Expand Up @@ -7878,7 +7886,7 @@ MediumEditor.parseVersionString = function (release) {

MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
// grunt-bump looks for this:
'version': '5.23.2'
'version': '5.23.3'
}).version);

return MediumEditor;
Expand Down
6 changes: 3 additions & 3 deletions dist/js/medium-editor.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",
"version": "5.23.2",
"version": "5.23.3",
"author": "Davi Ferreira <hi@daviferreira.com>",
"contributors": [
{
Expand Down
2 changes: 1 addition & 1 deletion src/js/version.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ MediumEditor.parseVersionString = function (release) {

MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
// grunt-bump looks for this:
'version': '5.23.2'
'version': '5.23.3'
}).version);

0 comments on commit eef3ee0

Please sign in to comment.