From f7efb7f2f9424e3abb294955697a8bd7654e02a5 Mon Sep 17 00:00:00 2001 From: mka Date: Mon, 1 Jul 2013 11:52:07 +0000 Subject: [PATCH] It was impossible to edit the body of the knowledge when the ordered or unordered lists are contained in. --- Workspace/Siman/WebContent/jsp/editKnowledge.jsp | 2 +- Workspace/Siman/WebContent/rtef/richtext.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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 -- 2.39.2