diff --git a/boards/static/js/form.js b/boards/static/js/form.js --- a/boards/static/js/form.js +++ b/boards/static/js/form.js @@ -33,7 +33,7 @@ var form = $('#form'); $('#preview-button').click(function() { var data = { - raw_text: $('textarea').val() + raw_text: $('textarea#id_text').val() } var diffUrl = '/api/preview/'; @@ -112,7 +112,7 @@ function selectFileChoice() { showAsErrors(form, gettext('Computing PoW...')); $('.post-form-w').block({ message: gettext('Computing PoW...') }) - var msg = $('textarea').val().trim(); + var msg = $('textarea#id_text').val().trim(); var data = { msg: msg, diff --git a/boards/static/js/panel.js b/boards/static/js/panel.js --- a/boards/static/js/panel.js +++ b/boards/static/js/panel.js @@ -30,7 +30,7 @@ * @param end End (right) text */ function addMarkToMsg(start, end) { - var textareas = $('textarea'); + var textareas = $('textarea#id_text'); for (var i = 0; i < textareas.length; i++) { var textarea = textareas[i];