Beyaz.Net İpucu
codeigniter FCKEditor Ekleme
FCK Editör dosyalarımızı
js/fckeditor
klasörümüze attıktan sonra form oluşturduğumuz sayfaya
<script src="<?=base_url()?>js/fckeditor/fckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor('edIcerikTR','100%','500','');
oFCKeditor.BasePath = '<?=base_url()?>' + 'js/fckeditor/';
oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath+'fckconfig.js?';
oFCKeditor.Config['SkinPath'] = oFCKeditor.BasePath+'editor/skins/silver/';
oFCKeditor.ReplaceTextarea();
}
</script>
kodlarını ekliyoruz.
Bundan sonra FCK editor için ;
<textarea cols="70" name="edIcerikTR" id="edIcerikTR" rows="15"><?=$edIcerikTR?></textarea>
yazmamız yeterlidir.
js/fckeditor
klasörümüze attıktan sonra form oluşturduğumuz sayfaya
<script src="<?=base_url()?>js/fckeditor/fckeditor.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload = function(){
var oFCKeditor = new FCKeditor('edIcerikTR','100%','500','');
oFCKeditor.BasePath = '<?=base_url()?>' + 'js/fckeditor/';
oFCKeditor.Config['CustomConfigurationsPath'] = oFCKeditor.BasePath+'fckconfig.js?';
oFCKeditor.Config['SkinPath'] = oFCKeditor.BasePath+'editor/skins/silver/';
oFCKeditor.ReplaceTextarea();
}
</script>
kodlarını ekliyoruz.
Bundan sonra FCK editor için ;
<textarea cols="70" name="edIcerikTR" id="edIcerikTR" rows="15"><?=$edIcerikTR?></textarea>
yazmamız yeterlidir.