• 21-01-2008, 02:56:37
    #1
    Selam Aleykum,
    Kucuk capimda bir projem var, örnegin bir form sayfasinda textarea kismini fckeditor veya tiny_mce seklinde yapmak istiyorum, ama Nasil ?
    +
    mesela tiny_mce resmi sitesinde denedim, bir alt satira gecip yazi yazdigimda bir ust ile bir alt satirin arasainda paragraf konuluyor (<p>) buda 2 satir arasinda biraz fazla bosluk gösteriyor ki iyi gözukmuyor, bunu haledebilirmiyiz ?
    Arastirdim ama benzeri konu bulamadim ?
    Yardimlariniz icin simdiden tesekur ederim.
    Kripteks
  • 21-01-2008, 03:01:33
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    fckconfig.js dosyasını açın

    FCKConfig.EnterMode = 'p' ;            // p | div | br
    bölümünü

    FCKConfig.EnterMode = 'br' ;            // p | div | br
    olarak değiştirip kaydedin, bu kadar...
  • 21-01-2008, 03:23:02
    #3
    NOKProduction adlı üyeden alıntı: mesajı görüntüle
    fckconfig.js dosyasını açın
    FCKConfig.EnterMode = 'p' ;            // p | div | br
    bölümünü
    FCKConfig.EnterMode = 'br' ;            // p | div | br
    olarak değiştirip kaydedin, bu kadar...
    Cok tesekur ederim, bende yenicek fckeditor'u yapmayi basardim dediginizi yaparim yarin gec oldu simdi,

    fckeditor.com'dan indirip /fckeditor/ ftp atip, altaki kodlari sayfaniza koymalisiniz

    Alıntı
    <?php include("fckeditor/fckeditor.php") ;?>
    <?php
    $oFCKeditor = new FCKeditor('mesaj');
    $oFCKeditor->BasePath = '/fckeditor/';
    $oFCKeditor->Value = 'Default text in editor';
    $oFCKeditor->Create();
    ?>


    Örnek syafa:

    Alıntı
    <?php include("fckeditor/fckeditor.php") ;?>

    <table border="1" width="100%">
    <form method="POST" action="postaction.php">
    <tr>
    <td width="41" height="93">Mesaj:</td>
    <td height="93">
    <?php
    $oFCKeditor = new FCKeditor('mesaj');
    $oFCKeditor->BasePath = '/fckeditor/';
    $oFCKeditor->Value = 'Default text in editor';
    $oFCKeditor->Create();
    ?>
    <p>&nbsp;</td>
    </tr>
    <tr>
    <td width="41" height="42">&nbsp;</td>
    <td height="42"><input type="submit" value="Gönder" name="B2"><input type="reset" value="Sifirla" name="B3"></td>
    </tr>
    </form>
    </table>
    $oFCKeditor = new FCKeditor('mesaj');
    bu satirdaki "mesaj" textarea'da name kismidir
  • 21-01-2008, 03:54:42
    #4
    teşekürler güzel bilgi
  • 21-01-2008, 20:04:00
    #5
    tiny_mce icin ise:
    SourceForge.net: Downloading ...

    indirip tinymce dosyasini ftp atin, tinymce/examples dosyasini silebilirsiniz.

    Sayfanizin <head>tag'lari arasina altakileri koyun:
    Alıntı
    <!-- TinyMCE -->
    <script type="text/javascript" src="tinymce/jscripts/tiny_mce/tiny_mce.js"></script>
    <script type="text/javascript">
    tinyMCE.init({
    // General options
    mode : "textareas",
    theme : "advanced",
    plugins : "safari,pagebreak,style,layer,table,save,advhr,adv image,advlink,emotions,iespell,insertdatetime,prev iew,media,searchreplace,print,contextmenu,paste,di rectionality,fullscreen,noneditable,visualchars,no nbreaking,xhtmlxtras,template,inlinepopups",

    // Theme options
    theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,striketh rough,|,justifyleft,justifycenter,justifyright,jus tifyfull,|,styleselect,formatselect,fontselect,fon tsizeselect",
    theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,repla ce,|,bullist,numlist,|,outdent,indent,blockquote,| ,undo,redo,|,link,unlink,anchor,image,cleanup,help ,code,|,insertdate,inserttime,preview,|,forecolor, backcolor",
    theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,s up,|,charmap,emotions,iespell,media,advhr,|,print, |,ltr,rtl,|,fullscreen",
    theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,s tyleprops,|,cite,abbr,acronym,del,ins,attribs,|,vi sualchars,nonbreaking,template,pagebreak",
    theme_advanced_toolbar_location : "top",
    theme_advanced_toolbar_align : "left",
    theme_advanced_statusbar_location : "bottom",
    theme_advanced_resizing : true,

    // Example word content CSS (should be your site CSS) this one removes paragraph margins
    content_css : "css/word.css",

    // Drop lists for link/image/media/template dialogs
    template_external_list_url : "lists/template_list.js",
    external_link_list_url : "lists/link_list.js",
    external_image_list_url : "lists/image_list.js",
    media_external_list_url : "lists/media_list.js",

    // Replace values for the template plugin
    template_replace_values : {
    username : "Some User",
    staffid : "991234"
    }
    });
    </script>
    <!-- /TinyMCE -->
    Böylece textarea'lari otomatik taniyip kendi özelikleriyle acilir.
  • 20-07-2008, 13:37:26
    #6
    Kimlik doğrulama veya yönetimden onay bekliyor.
    Merhaba TinyMCE editör eklediğim bir Scriptin yazı alanı dar kaldı nedeni ne olabilir acaba?
    SS Ekledim tam olarak anlatabildim mi bilmiyorum. Şİmdiden teşekkür ederim yardımlarınıza.