From: rkv Date: Thu, 25 Oct 2012 06:21:55 +0000 (+0000) Subject: Minor fix of the rich text editor for Firefox v12. X-Git-Tag: Root_Delivery1_2012_12_06~125 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=6eed5be54ffc262c46c112c5218649d37431de63;p=tools%2Fsiman.git Minor fix of the rich text editor for Firefox v12. --- diff --git a/Workspace/Siman/WebContent/rtef/richtext.js b/Workspace/Siman/WebContent/rtef/richtext.js index ce19f6b..1acd7a9 100644 --- a/Workspace/Siman/WebContent/rtef/richtext.js +++ b/Workspace/Siman/WebContent/rtef/richtext.js @@ -135,7 +135,7 @@ function initTextInput() { wrapWidth = 14 * 24; defaultFont = "Arial, Helvetica, sans-serif"; - initRTE("../rtef/images/", "", "", true); + initRTE("../rtef/images/", "../rtef/", "", true); } function initTextEditor() { @@ -158,7 +158,7 @@ function initTextEditor() { wrapWidth = 15 * 24; defaultFont = "Arial, Helvetica, sans-serif"; - initRTE("../rtef/images/", "", "", true); + initRTE("../rtef/images/", "../rtef/", "", true); } function addCommand(name, action) { @@ -268,7 +268,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) { @@ -467,6 +467,7 @@ function enableDesignMode(rte, html, css, readOnly) { // // if(!readOnly) document.getElementById(rte).contentDocument.designMode = "on"; if(!readOnly && !isKonqueror && !isSafari) { + document.getElementById(rte).contentDocument.designMode = "on"; //RKV addLoadEvent(function() { document.getElementById(rte).contentDocument.designMode = "on"; }); } else if(!readOnly) { if (!readOnly) document.getElementById(rte).contentDocument.designMode = "on";