Potrzebuję podłączyć go w kilku miejscach na serwisie. Kod strony wygląda następująco:
Kod
...
<link href="http://moja_domena.pl/s/edytor/fckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://moja_domena.pl/s/edytor/fckeditor/fckeditor.js"></script>
</head>
<body>
<div id="test" style="/*width:580px;*/background-color:#ffffff;">
<script type="text/javascript">
<!--
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples'));
var oFCKeditor = new FCKeditor( 'nazwa_okna' );
oFCKeditor.BasePath = 'fckeditor/';
oFCKeditor.ToolbarSet = 'Basic';
oFCKeditor.Height = 400;
oFCKeditor.Config['SkinPath'] = 'skins/silver/';
oFCKeditor.Config['FontNames'] = "Trebuchet MS";
oFCKeditor.Value = 'tekst';
oFCKeditor.Create();
//-->
</script>
</div>
...
<link href="http://moja_domena.pl/s/edytor/fckeditor/_samples/sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://moja_domena.pl/s/edytor/fckeditor/fckeditor.js"></script>
</head>
<body>
<div id="test" style="/*width:580px;*/background-color:#ffffff;">
<script type="text/javascript">
<!--
var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('_samples'));
var oFCKeditor = new FCKeditor( 'nazwa_okna' );
oFCKeditor.BasePath = 'fckeditor/';
oFCKeditor.ToolbarSet = 'Basic';
oFCKeditor.Height = 400;
oFCKeditor.Config['SkinPath'] = 'skins/silver/';
oFCKeditor.Config['FontNames'] = "Trebuchet MS";
oFCKeditor.Value = 'tekst';
oFCKeditor.Create();
//-->
</script>
</div>
...