Skip to content

Commit

Permalink
version up: 2.5.3 - fix: relative link
Browse files Browse the repository at this point in the history
  • Loading branch information
JiHong88 committed Oct 28, 2018
1 parent c77b28c commit 09c7e86
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "suneditor",
"version": "2.5.2",
"version": "2.5.3",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion dist/suneditor.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"sideEffects": [
"./src/assets/css/*.css"
],
"version": "2.5.2",
"version": "2.5.3",
"description": "Pure JavaScript based WYSIWYG web editor",
"main": "src/suneditor.js",
"keywords": [
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/dialog/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ export default {
const submitAction = function () {
if (this.context.link.focusElement.value.trim().length === 0) return false;

const url = /^https?:\/\//.test(this.context.link.focusElement.value) ? this.context.link.focusElement.value : "http://" + this.context.link.focusElement.value;
const url = this.context.link.focusElement.value;
const anchor = this.context.link.linkAnchorText || this.context.dialog.document.getElementById("linkAnchorText");
const anchorText = anchor.value.length === 0 ? url : anchor.value;

Expand Down

0 comments on commit 09c7e86

Please sign in to comment.