Skip to content

Commit b18c959

Browse files
committed
Merge pull request #27 from mightymax/master
Adds an onFocus event similiar to the onBlur event
2 parents 052c6f6 + 8c3ed21 commit b18c959

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

js/bootstrap-markdown.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@
602602
}
603603
})
604604

605+
// Trigger the onFocus hook
606+
options.onFocus(this);
607+
605608
return this
606609
}
607610

@@ -901,7 +904,8 @@
901904
onShow: function (e) {},
902905
onPreview: function (e) {},
903906
onSave: function (e) {},
904-
onBlur: function (e) {}
907+
onBlur: function (e) {},
908+
onFocus: function (e) {},
905909
}
906910

907911
$.fn.markdown.Constructor = Markdown

0 commit comments

Comments
 (0)