Skip to content

Commit eef3ee0

Browse files
committed
5.23.3
1 parent f084da4 commit eef3ee0

7 files changed

Lines changed: 32 additions & 9 deletions

File tree

CHANGES.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
5.23.3 / 2017-12-20
2+
==================
3+
* Fix medium-editor-insert plugin css fixes on beagle theme #1361
4+
* Update jsDelivr links #1366 & #1367
5+
* Fix Firefox console warning causing issues #1370
6+
* Do not check only for null targets or it will fail when it's undefined. #1373
7+
* Fix crash when 'extensions' in 'isElementDescendantOfExtension' is undefined #1362
8+
* Fix Jasmine Unit Test errors #1385
9+
* Fix null error on pastedPlain.split #1397
10+
* Fix broken browser tests #1396
11+
12+
113
5.23.2 / 2017-08-02
214
==================
315
* Add noopener & noreferrer into targetBlank #1355

dist/css/themes/beagle.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,3 +76,6 @@
7676
.medium-editor-anchor-preview a {
7777
color: #ccc;
7878
text-decoration: none; }
79+
80+
.medium-editor-toolbar-actions li, .medium-editor-toolbar-actions button {
81+
border-radius: 50px; }

dist/css/themes/beagle.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/js/medium-editor.js

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2452,6 +2452,10 @@ MediumEditor.extensions = {};
24522452
'use strict';
24532453

24542454
function isElementDescendantOfExtension(extensions, element) {
2455+
if (!extensions) {
2456+
return false;
2457+
}
2458+
24552459
return extensions.some(function (extension) {
24562460
if (typeof extension.getInteractionElements !== 'function') {
24572461
return false;
@@ -2502,7 +2506,7 @@ MediumEditor.extensions = {};
25022506
win = this.base.options.contentWindow,
25032507
doc = this.base.options.ownerDocument;
25042508

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

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

5352+
if (!pastedPlain) {
5353+
return;
5354+
}
5355+
53485356
if (!(this.getEditorOption('disableReturn') || (editable && editable.getAttribute('data-disable-return')))) {
53495357
paragraphs = pastedPlain.split(/[\r\n]+/g);
53505358
// If there are no \r\n in data, don't wrap in <p>
@@ -6935,7 +6943,7 @@ MediumEditor.extensions = {};
69356943
for (var i = 0, n = atts.length; i < n; i++) {
69366944
// do not re-create existing attributes
69376945
if (!div.hasAttribute(atts[i].nodeName)) {
6938-
div.setAttribute(atts[i].nodeName, atts[i].nodeValue);
6946+
div.setAttribute(atts[i].nodeName, atts[i].value);
69396947
}
69406948
}
69416949

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

78797887
MediumEditor.version = MediumEditor.parseVersionString.call(this, ({
78807888
// grunt-bump looks for this:
7881-
'version': '5.23.2'
7889+
'version': '5.23.3'
78827890
}).version);
78837891

78847892
return MediumEditor;

dist/js/medium-editor.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "medium-editor",
3-
"version": "5.23.2",
3+
"version": "5.23.3",
44
"author": "Davi Ferreira <hi@daviferreira.com>",
55
"contributors": [
66
{

src/js/version.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ MediumEditor.parseVersionString = function (release) {
1515

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

0 commit comments

Comments
 (0)