source: trunk/htmlarea.js @ 999

Last change on this file since 999 was 999, checked in by ray, 11 years ago

#1195 Allow to specify an external url to load a plugin from

  • Property svn:eol-style set to native
  • Property svn:keywords set to LastChangedDate LastChangedRevision LastChangedBy HeadURL Id
File size: 1012 bytes
Line 
1 
2  /*--------------------------------------:noTabs=true:tabSize=2:indentSize=2:--
3    --  COMPATABILITY FILE
4    --  htmlarea.js is now XinhaCore.js 
5    --
6    --  $HeadURL:http://svn.xinha.webfactional.com/trunk/htmlarea.js $
7    --  $LastChangedDate:2007-01-15 15:28:57 +0100 (Mo, 15 Jan 2007) $
8    --  $LastChangedRevision:659 $
9    --  $LastChangedBy:gogo $
10    --------------------------------------------------------------------------*/
11   
12if ( typeof _editor_url == "string" )
13{
14  // Leave exactly one backslash at the end of _editor_url
15  _editor_url = _editor_url.replace(/\x2f*$/, '/');
16}
17else
18{
19  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.");
20  _editor_url = '';
21}
22
23document.write('<script type="text/javascript" src="'+_editor_url+'XinhaCore.js"></script>');
Note: See TracBrowser for help on using the repository browser.