From 2ffcbae4895a3fd3b6e7d9249fea40a895fe5c77 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Tue, 1 May 2018 00:21:12 -0600 Subject: [PATCH] Disable links when editing --- static/js/editor.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/editor.js b/static/js/editor.js index db2480a..e45e59a 100644 --- a/static/js/editor.js +++ b/static/js/editor.js @@ -32,6 +32,10 @@ function saveEdits() { } $(document).ready(function () { + $('a').click(function (e) { + e.preventDefault(); + }); + $("body").append(""); $(".sw-editable").each(function () {