23-09-2007, 15:16
|
|
|
חבר מתאריך: 21.01.06
הודעות: 813
|
|
תודה רבה!!! אבל תשמע, החלפתי עכשיו עורך, שהוא לא נראה כמו textarea ככה שיהיה יותר קשה לעבוד איתו, איך בקוד הבא אני יכול לעשות את מה שאמרת?
קוד:
<link href="../sample.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../fckeditor.js"></script>
<body>
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ; // '/fckeditor/' is the default value.
var sBasePath = document.location.pathname.substring(0,document.lo cation.pathname.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'textare' ) ;
oFCKeditor.BasePath = ../fckeditor ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '' ;
oFCKeditor.Create() ;
//-->
</script>
ושוב תודה !
_____________________________________
--- ! Area Close ! ---
|