Skip to content

Commit

Permalink
Merge pull request #122 from TooBug/patch-1
Browse files Browse the repository at this point in the history
处理插入代码时出现undefined的情况
  • Loading branch information
sofish committed Nov 22, 2014
2 parents 0d940bc + 186e66c commit 44d75cc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pen.js
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
}

function commandWrap(ctx, tag, value) {
value = '<' + tag + '>' + value + '</' + tag + '>';
value = '<' + tag + '>' + (value||'') + '</' + tag + '>';
return commandOverall(ctx, 'insertHTML', value);
}

Expand Down

0 comments on commit 44d75cc

Please sign in to comment.