Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.

FCKEditor problem

[es] :: PHP :: FCKEditor problem

[ Pregleda: 2190 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

_CaRtMan_

Član broj: 126731
Poruke: 305
*.PPPoE-7034.sa.bih.net.ba.



+1 Profil

icon FCKEditor problem09.02.2008. u 22:43 - pre 197 meseci
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]
 
Odgovor na temu

MoDcHe
SER Sabac

Član broj: 4
Poruke: 486
*.gromnet.net.

Jabber: modche@elitesecurity.org
ICQ: 73295306
Sajt: localhost


+3 Profil

icon Re: FCKEditor problem10.02.2008. u 01:14 - pre 197 meseci
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>


When you say "I wrote a program
that crashed Windows", people
just stare at
you blankly and say "Hey, I got
those with the system, *for
free*".
-- Linus Torvalds
 
Odgovor na temu

_CaRtMan_

Član broj: 126731
Poruke: 305
89.146.175.*



+1 Profil

icon Re: FCKEditor problem10.02.2008. u 22:39 - pre 197 meseci
Hvala. :)

I zasto ne radi kad dodam:

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

a prije toga je:

$oFCKeditor->BasePath = 'fckeditor/';
 
Odgovor na temu

MoDcHe
SER Sabac

Član broj: 4
Poruke: 486
*.gromnet.net.

Jabber: modche@elitesecurity.org
ICQ: 73295306
Sajt: localhost


+3 Profil

icon Re: FCKEditor problem11.02.2008. u 09:04 - pre 197 meseci
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.
When you say "I wrote a program
that crashed Windows", people
just stare at
you blankly and say "Hey, I got
those with the system, *for
free*".
-- Linus Torvalds
 
Odgovor na temu

_CaRtMan_

Član broj: 126731
Poruke: 305
89.146.167.*



+1 Profil

icon Re: FCKEditor problem11.02.2008. u 09:34 - pre 197 meseci
Rjeseno. Hvala.
 
Odgovor na temu

_CaRtMan_

Član broj: 126731
Poruke: 305
*.PPPoE-2470.sa.bih.net.ba.



+1 Profil

icon Re: FCKEditor problem12.02.2008. u 20:49 - pre 197 meseci
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?
 
Odgovor na temu

[es] :: PHP :: FCKEditor problem

[ Pregleda: 2190 | Odgovora: 5 ] > FB > Twit

Postavi temu Odgovori

Navigacija
Lista poslednjih: 16, 32, 64, 128 poruka.