Skip to content

Commit

Permalink
wiki image fix for publiclab#5650 (publiclab#5703)
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored and digitaldina committed May 12, 2019
1 parent f2854e3 commit 5cfd399
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/assets/javascripts/editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ $E = {

// wraps currently selected text in textarea with strings a and b
wrap: function(a,b,args) {
this.refresh();
var isWiki = (window.location + '').includes('wiki');
if (!isWiki) this.refresh();
var len = $E.textarea.val().length;
var start = $E.textarea[0].selectionStart;
var end = $E.textarea[0].selectionEnd;
Expand Down

0 comments on commit 5cfd399

Please sign in to comment.