![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 5.07.2007 Ostrzeżenie: (0%) ![]() ![]() |
Mam pytanie i może ktoś to przerabiał. W FCKEditorze wyświetlam tekst który edytorek markuje tagiem P na początku i końcu każdej linii. Co śmieszne mam to w kilku różnych miejscach gdzie kod wstawiający osadzam na zasadzie Crtl+C, Ctrl+V z jednej formy na drugą. Ale tylko w tym jednym przypadku w każdej linii pakuje mi tag P.
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> 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 ); 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"; Ten post edytował JerzyM 10.08.2007, 11:25:49 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.09.2025 - 17:17 |