Skip to content

Commit c26236d

Browse files
author
iranana
authored
commandLink() 'this' -> 'ctx'
commandLink() referenced 'this.config' where 'this' is undefined. Seems like it should instead be getting 'ctx.config'.
1 parent ce22943 commit c26236d

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)