X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/7af04f8691b2be446af91ae8c51dc0e196bd22fb..c533fb4b7430c5c9e194bde7a047b7479c758130:/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"); });