From: mka Date: Mon, 1 Jul 2013 11:52:07 +0000 (+0000) Subject: It was impossible to edit the body of the knowledge when the ordered or unordered... X-Git-Tag: Delivery_V1_0_2013_07_12~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f7efb7f2f9424e3abb294955697a8bd7654e02a5;p=tools%2Fsiman.git It was impossible to edit the body of the knowledge when the ordered or unordered lists are contained in. --- diff --git a/Workspace/Siman/WebContent/jsp/editKnowledge.jsp b/Workspace/Siman/WebContent/jsp/editKnowledge.jsp index 78451f5..1cff9e5 100644 --- a/Workspace/Siman/WebContent/jsp/editKnowledge.jsp +++ b/Workspace/Siman/WebContent/jsp/editKnowledge.jsp @@ -75,7 +75,7 @@ if (todo == Action.editKnowledge && kelm.getIndex().equals(typenumber)) { %> diff --git a/Workspace/Siman/WebContent/rtef/richtext.js b/Workspace/Siman/WebContent/rtef/richtext.js index b666b5b..2b09b06 100644 --- a/Workspace/Siman/WebContent/rtef/richtext.js +++ b/Workspace/Siman/WebContent/rtef/richtext.js @@ -269,7 +269,7 @@ function writeRichText(rte, html, css, width, height, buttons, readOnly, fullscr document.writeln(''); insertBar(); if(fullscreen || activeCommand.get("save") != null){ - document.writeln(''); + document.writeln(''); nbcommand += 1; } if(!isSafari && !isKonqueror) { @@ -1336,12 +1336,12 @@ function checkspell() { //Validation //***************** function enableRTEvalidation(rteName) { - document.getElementById(rteName+'SaveButton').onclick = function(event){ + document.getElementById(rteName+'SaveButton').addEventListener("click", function(event){ updateRTEs(); field = document.getElementById('hdn'+rteName); if(field.value != null && (field.value == "" || field.value.replace(/^\s+|\s+$/g,"").length == 0)) { event.preventDefault(); } - }; + }); } \ No newline at end of file