Herod2k
27-10-2005, 17:24
Ragazzi sto impazzendo è la prima volta che monto l'FCKeditor in un sito, nelle istruzioni c'è scritto che per personalizzare la barra bisogna editare il file fckconfig.js
prima era così
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['About']
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
io l'ho trasformato così
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor']
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
FCKConfig.ToolbarSets["h2k"] = [
['NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough'],
['OrderedList','UnorderedList','-'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink'],
['Image','Table','SpecialChar',],
['Style','FontName','FontSize'],
['TextColor','BGColor']
] ;
poi ho messo nella pagina dove è inserito l'FCKeditor i seguenti tag
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->ToolbarSet = 'h2k';
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create() ;
?>
però mi da errore mi dice che non trova la toolbar "h2k" quella che ho creato io, se metto basic o Default parte se metto h2k non funziona, la cosa strana è che se modifico il file di configurazio delle voci default o basic l'interfaccia non cambia a questo punto mi sorge il dubbio che l'interfaccia non vada a leggere questo file ma un'altro.. :muro: :muro: :muro:
Quale?
Io sto seguendo questo wiki (http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Toolbar) e ho fatto quello che c'era scritto, qualcuno mi può dare una mano?
Grazie
H2K
prima era così
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['About']
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
io l'ho trasformato così
FCKConfig.ToolbarSets["Default"] = [
['Source','DocProps','-','Save','NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','Table','Rule','Smiley','SpecialChar','PageBreak','UniversalKey'],
['Form','Checkbox','Radio','TextField','Textarea','Select','Button','ImageButton','HiddenField'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor']
] ;
FCKConfig.ToolbarSets["Basic"] = [
['Bold','Italic','-','OrderedList','UnorderedList','-','Link','Unlink','-','About']
] ;
FCKConfig.ToolbarSets["h2k"] = [
['NewPage','Preview','-','Templates'],
['Cut','Copy','Paste','PasteText','PasteWord','-','Print','SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
['Bold','Italic','Underline','StrikeThrough'],
['OrderedList','UnorderedList','-'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink'],
['Image','Table','SpecialChar',],
['Style','FontName','FontSize'],
['TextColor','BGColor']
] ;
poi ho messo nella pagina dove è inserito l'FCKeditor i seguenti tag
<?php
$oFCKeditor = new FCKeditor('FCKeditor1') ;
$oFCKeditor->ToolbarSet = 'h2k';
$oFCKeditor->BasePath = '/FCKeditor/';
$oFCKeditor->Value = '';
$oFCKeditor->Create() ;
?>
però mi da errore mi dice che non trova la toolbar "h2k" quella che ho creato io, se metto basic o Default parte se metto h2k non funziona, la cosa strana è che se modifico il file di configurazio delle voci default o basic l'interfaccia non cambia a questo punto mi sorge il dubbio che l'interfaccia non vada a leggere questo file ma un'altro.. :muro: :muro: :muro:
Quale?
Io sto seguendo questo wiki (http://wiki.fckeditor.net/Developer%27s_Guide/Configuration/Toolbar) e ho fatto quello che c'era scritto, qualcuno mi può dare una mano?
Grazie
H2K