|
Revision 999, 1.0 kB
(checked in by ray, 4 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
|
| Line | |
|---|
| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | if ( typeof _editor_url == "string" ) |
|---|
| 13 | { |
|---|
| 14 | |
|---|
| 15 | _editor_url = _editor_url.replace(/\x2f*$/, '/'); |
|---|
| 16 | } |
|---|
| 17 | else |
|---|
| 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 | |
|---|
| 23 | document.write('<script type="text/javascript" src="'+_editor_url+'XinhaCore.js"></script>'); |
|---|