var target = event.target != null ? event.target : event.srcElement;
target = target.parentNode; // Gets the hyperlink
if (_replaceContext) {
- _divContext = $(target.attributes[0].nodeValue); // Popup involved (made of document index prefixed by "popup")
+ _divContext = document.getElementById(target.attributes[0].nodeValue); // Popup involved (made of document index prefixed by "popup")
// document.body.scrollTop does not work in IE
var scrollTop = document.scrollTop ? document.scrollTop : document.documentElement.scrollTop;
return true;
}
-// For making easier on the eyes and fingers
- function $(id) {
-// --------------
- return document.getElementById(id);
- }
\ No newline at end of file
+//// For making easier on the eyes and fingers
+// function $(id) {
+//// --------------
+// return document.getElementById(id);
+// }
\ No newline at end of file
////////////////////////////////////////////////////////////////////////////////
// Constants
+var ctxpath = "/siman/";
var minWidth = 450; // minumum width
var wrapWidth = 1245; //width at which all icons will appear on one bar
var maxchar = 64000; // maximum number of characters per save
wrapWidth = 14 * 24;
defaultFont = "Arial, Helvetica, sans-serif";
- initRTE("../rtef/images/", "../rtef/", "", true);
+ initRTE(ctxpath + "rtef/images/", ctxpath + "rtef/", "", true);
}
function initTextEditor() {
wrapWidth = 15 * 24;
defaultFont = "Arial, Helvetica, sans-serif";
- initRTE("../rtef/images/", "../rtef/", "", true);
+ initRTE(ctxpath + "rtef/images/", ctxpath + "rtef/", "", true);
}
function addCommand(name, action) {
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title><s:text name="name.module"/></title>
- <link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
- <link href="../rtef/rte.css" rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript" src="../rtef/lang/fr.js"></script>
- <script language="JavaScript" type="text/javascript" src="../rtef/richtext.js"></script>
- <script language="JavaScript" type="text/javascript" src="../rtef/xhtml.js"></script>
- <script language="JavaScript" type="text/javascript" src="../js/popup.js"></script>
- <script language="JavaScript" type="text/javascript" src="../js/action.js"></script>
+ <link href="<s:url value="/skin/default.css"/>" rel="stylesheet" type="text/css">
+ <link href="<s:url value="/rtef/rte.css"/>" rel="stylesheet" type="text/css">
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/lang/fr.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/richtext.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/xhtml.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/js/popup.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/js/action.js"/>"></script>
<script language="JavaScript">
<link href=<s:url value="/skin/default.css"/> rel="stylesheet" type="text/css">
- <script language="JavaScript" type="text/javascript" src="../rtef/lang/fr.js"></script>
- <script language="JavaScript" type="text/javascript" src="../rtef/richtext.js"></script>
- <script language="JavaScript" type="text/javascript" src="../rtef/xhtml.js"></script>
- <script language="JavaScript" type="text/javascript" src="../js/popup.js"></script>
- <script language="JavaScript" type="text/javascript" src="../js/action.js"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/lang/fr.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/richtext.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/rtef/xhtml.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/js/popup.js"/>"></script>
+ <script language="JavaScript" type="text/javascript" src="<s:url value="/js/action.js"/>"></script>
<script language="JavaScript">