Skip to content

Commit

Permalink
Merge pull request #18 from rscheitlin/Add_Hard_Breaks
Browse files Browse the repository at this point in the history
Add Hard Breaks
  • Loading branch information
rscheitlin committed Feb 4, 2015
2 parents a7e8010 + d3a5ccc commit e844ecd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions setting/PopupEdit.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ define(
}
}));
if(this.customContentTA.value && this.customContentTA.value.length > 0){
config.description = this.customContentTA.value;
config.description = this.customContentTA.value.replace('\n', '<br>');
}
config.showAttachments = this.showAttachmentsCbx.getValue();
config.tr = this.tr;
Expand Down Expand Up @@ -401,7 +401,6 @@ define(
this.popup.close();
this.popupState = '';
this._insertAtCursor(this.customContentTA,'<a href="' + hyperlinkConfig.url + '">'+ hyperlinkConfig.description + '</a>');
//this._wrapAroundSelection(this.customContentTA,'<a href="' + hyperlinkConfig.url + '">','</a>');
this.customContentTA.selectionStart = this.customContentTA.value.length;
},

Expand Down

0 comments on commit e844ecd

Please sign in to comment.