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

FCKEditor problem

[es] :: PHP :: FCKEditor problem

[ Pregleda: 606 | Odgovora: 5 ]

Postavi temu Odgovori

Autor

Pretraga teme: Traži
Markiranje Štampanje RSS

_CaRtMan_

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



Profil

icon FCKEditor problem09.02.2008. u 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]
09.02.2008. u 22:43 

MoDcHe
SER Sabac

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

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


Profil

icon Re: FCKEditor problem10.02.2008. u 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>


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
10.02.2008. u 01:14 

_CaRtMan_

Član broj: 126731
Poruke: 172
89.146.175.*



Profil

icon Re: FCKEditor problem10.02.2008. u 22:39
Hvala. :)

I zasto ne radi kad dodam:

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

a prije toga je:

$oFCKeditor->BasePath = 'fckeditor/';
10.02.2008. u 22:39 

MoDcHe
SER Sabac

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

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


Profil

icon Re: FCKEditor problem11.02.2008. u 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.
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
11.02.2008. u 09:04 

_CaRtMan_

Član broj: 126731
Poruke: 172
89.146.167.*



Profil

icon Re: FCKEditor problem11.02.2008. u 09:34
Rjeseno. Hvala.
11.02.2008. u 09:34 

_CaRtMan_

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



Profil

icon Re: FCKEditor problem12.02.2008. u 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?
12.02.2008. u 20:49 

[es] :: PHP :: FCKEditor problem

[ Pregleda: 606 | Odgovora: 5 ]

Postavi temu Odgovori

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