forked from xinha/xinha-mirror
-
Notifications
You must be signed in to change notification settings - Fork 0
/
htmlarea.js
23 lines (20 loc) · 1012 Bytes
/
htmlarea.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
-- COMPATABILITY FILE
-- htmlarea.js is now XinhaCore.js
--
-- $HeadURL:http://svn.xinha.webfactional.com/trunk/htmlarea.js $
-- $LastChangedDate:2007-01-15 15:28:57 +0100 (Mo, 15 Jan 2007) $
-- $LastChangedRevision:659 $
-- $LastChangedBy:gogo $
--------------------------------------------------------------------------*/
if ( typeof _editor_url == "string" )
{
// Leave exactly one backslash at the end of _editor_url
_editor_url = _editor_url.replace(/\x2f*$/, '/');
}
else
{
alert("WARNING: _editor_url is not set! You should set this variable to the editor files path; it should preferably be an absolute path, like in '/htmlarea/', but it can be relative if you prefer. Further we will try to load the editor files correctly but we'll probably fail.");
_editor_url = '';
}
document.write('<script type="text/javascript" src="'+_editor_url+'XinhaCore.js"></script>');