[ _CaRtMan_ @ 09.02.2008. 22:43 ] @
Code:
<?php
include_once("fckeditor/fckeditor.php") ;
?>
<html>
<head>

  <title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
  <form action="sampleposteddata.php" method="post" target="_blank">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKConfig->CustomConfigurationsPath = 'fckconfig.js' ;
$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?>
    <br>
    <input type="submit" value="Submit">
  </form>
</body>
</html>


To mi je kod. Kako cu odrediti height i width. Width je 100%, gdje mogu editovat. Vidim u fckeditor.js ima:

Code:
    this.Width            = width            || '100%' ;
    this.Height            = height        || '300' ;


Ali nigdje mi to nije included ili tako nesto. Tnx.

edit: Nemanja: Kod u [code] tagove!

[Ovu poruku je menjao Nemanja Avramović dana 10.02.2008. u 00:23 GMT+1]
[ MoDcHe @ 10.02.2008. 01:14 ] @
Code:

$oFCKeditor->Width = '50%' ;
$oFCKeditor->Height = '500' ; 


Sa tvojim kodom:

Code:


<html>
<head>

  <title>FCKeditor - Sample</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
  <form action="sampleposteddata.php" method="post" target="_blank">
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Width = '50%' ; // po volji :)
$oFCKeditor->Height = '500' ;  // isto takodje :P
$oFCKConfig->CustomConfigurationsPath = 'fckconfig.js' ;
$oFCKeditor->Value = '' ;
$oFCKeditor->Create() ;
?>
    <br>
    <input type="submit" value="Submit">
  </form>
</body>
</html>

[ _CaRtMan_ @ 10.02.2008. 22:39 ] @
Hvala. :)

I zasto ne radi kad dodam:

$oFCKeditor->Config['SkinPath'] = 'editor/skins/office2003/';

a prije toga je:

$oFCKeditor->BasePath = 'fckeditor/';
[ MoDcHe @ 11.02.2008. 09:04 ] @
Probaj u fckconfig.js fajlu da promenis:

FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/default/' ;

u

FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/' ;

ako koristis firefox, obrisi cache jer zna nekada da pravi problem.
[ _CaRtMan_ @ 11.02.2008. 09:34 ] @
Rjeseno. Hvala.
[ _CaRtMan_ @ 12.02.2008. 20:49 ] @
U Smarty-u:

Code:

{php}

$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->BasePath = 'fckeditor/';
$oFCKeditor->Width = '630' ; // po volji :)
$oFCKeditor->Height = '500' ;  // isto takodje :P
$oFCKConfig->CustomConfigurationsPath = 'fckconfig.js' ;
$oFCKeditor->Value = "???????";
$oFCKeditor->Create() ;

{/php}


Za prikaz tamo gdje hocu editora. Ovo me muci:

$oFCKeditor->Value = "???????";

(kod editovanja članka), "{$sta.clanak} negdje drugo prikaze, ali nece nikako u samom editoru. Pokusavao sam da upisem

$oFCKeditor->Value = "{$sta.clanak}";
$oFCKeditor->Value = "$sta.clanak";

Ali nece. Help?