X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7af04f8691b2be446af91ae8c51dc0e196bd22fb..352d9365e4c2a70756d3cd2f14530a7f71201c36:/app/assets/javascripts/richtext.js diff --git a/app/assets/javascripts/richtext.js b/app/assets/javascripts/richtext.js index 474c08069..78a9d452f 100644 --- a/app/assets/javascripts/richtext.js +++ b/app/assets/javascripts/richtext.js @@ -49,7 +49,7 @@ $(document).ready(function () { preview.addClass("loading"); }); - preview.load(editor.attr("data-preview-url"), { text: editor.val() }, function () { + preview.load(editor.data("previewUrl"), { text: editor.val() }, function () { preview.stopTime("loading"); preview.removeClass("loading"); });