Disable links when editing

This commit is contained in:
Skylar Ittner 2018-05-01 00:21:12 -06:00
parent a718bba8be
commit 2ffcbae489

View File

@ -32,6 +32,10 @@ function saveEdits() {
} }
$(document).ready(function () { $(document).ready(function () {
$('a').click(function (e) {
e.preventDefault();
});
$("body").append("<link href=\"" + static_dir + "/css/editor.css\" rel=\"stylesheet\" />"); $("body").append("<link href=\"" + static_dir + "/css/editor.css\" rel=\"stylesheet\" />");
$(".sw-editable").each(function () { $(".sw-editable").each(function () {