Poniżej przedstawiam samą konfigurację:
Kod
<script type="text/javascript" src="/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('tresc');
</script>
<script type="text/javascript" src="/fckconfig2.js"></script>
<script type="text/javascript">
oFCKeditor.Value = "{ $edycja.tresc }";
oFCKeditor.Create();
</script>
<script type="text/javascript">
var oFCKeditor = new FCKeditor('tresc');
</script>
<script type="text/javascript" src="/fckconfig2.js"></script>
<script type="text/javascript">
oFCKeditor.Value = "{ $edycja.tresc }";
oFCKeditor.Create();
</script>
gdzie fckconfig.js to
Kod
FCKConfig.ToolbarSets['PortalToolbar'] = [
['Bold','Italic','Underline','Superscript','Subscript','-','OrderedList',
'UnorderedList','-','FontFormatSimple','-','SpecialChar'],
['Table','-','TableInsertRow','TableDeleteRows','TableInsertColumn','TableDeleteColumns','TableInsertCell','TableDeleteCells','TableMergeCells','TableSplitCell'],
['SourceSimple']
];
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/';
FCKConfig.Plugins.Add( 'placeholder', 'pl,en', sOtherPluginPath );
FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath );
FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath );
['Bold','Italic','Underline','Superscript','Subscript','-','OrderedList',
'UnorderedList','-','FontFormatSimple','-','SpecialChar'],
['Table','-','TableInsertRow','TableDeleteRows','TableInsertColumn','TableDeleteColumns','TableInsertCell','TableDeleteCells','TableMergeCells','TableSplitCell'],
['SourceSimple']
];
var sOtherPluginPath = FCKConfig.BasePath.substr(0, FCKConfig.BasePath.length - 7) + 'editor/plugins/';
FCKConfig.Plugins.Add( 'placeholder', 'pl,en', sOtherPluginPath );
FCKConfig.Plugins.Add( 'tablecommands', null, sOtherPluginPath );
FCKConfig.Plugins.Add( 'simplecommands', null, sOtherPluginPath );
a plik fckconfig2.js wygląda tak
Kod
oFCKeditor.Config['SkinPath'] = oFCKeditor.BasePath+'editor/skins/office2003/';
oFCKeditor.ToolbarSet = "PortalToolbar";
oFCKeditor.Config['CustomConfigurationsPath']= "/fckconfig.js";
oFCKeditor.Config["EnterMode"] = "p";
oFCKeditor.Config["ShiftEnterMode"] = "br";
oFCKeditor.ToolbarSet = "PortalToolbar";
oFCKeditor.Config['CustomConfigurationsPath']= "/fckconfig.js";
oFCKeditor.Config["EnterMode"] = "p";
oFCKeditor.Config["ShiftEnterMode"] = "br";