Skip to content

Commit 4bd5f84

Browse files
authored
Merge pull request #181 from iranana/master
commandLink() 'this' -> 'ctx'
2 parents ce22943 + c26236d commit 4bd5f84

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/pen.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
}
144144

145145
function commandLink(ctx, tag, value) {
146-
if (this.config.linksInNewWindow) {
146+
if (ctx.config.linksInNewWindow) {
147147
value = '< a href="' + value + '" target="_blank">' + (selection.toString()) + '</a>';
148148
return commandOverall(ctx, 'insertHTML', value);
149149
} else {

0 commit comments

Comments
 (0)