From 9a31ad1016ddac6c97aca34edef489b0dc638f72 Mon Sep 17 00:00:00 2001 From: Felix Lohmeier Date: Wed, 29 Apr 2020 16:09:29 +0200 Subject: [PATCH] get value from codemirror editor (fix) --- js/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/app.js b/js/app.js index 418316e..4a84c18 100644 --- a/js/app.js +++ b/js/app.js @@ -3,7 +3,7 @@ $("#btn_validate").click( function () { $("#errors").html(""); $("#results").html(""); - validate($(editor.getValue()).val(), function (feedback) { + validate(editor.getValue(), function (feedback) { $.each(feedback.warnings, function (index, warning) { $("#warnings").append($('
  • ').text(warning)); });