# HG changeset patch # User neko259 # Date 2016-12-30 15:59:34 # Node ID e1a0b47bc9d63c6ab56c6caa4a202615875a539c # Parent 56a7188364547120e472775c72f9b90fed0a6a55 Insert markup only to the text textarea 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];