![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 376 Pomógł: 47 Dołączył: 23.08.2007 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam taki oto problem:
w jednym pliku wstawiam to: Kod <script type="text/javascript" src="include_edytor.js"></script> <textarea name="text" rows="8" cols="45"></textarea> <br /><br /> <script type="text/javascript" src="include_edytor_full.js"></script> <textarea name="text_full" rows="8" cols="45"></textarea> gdzie: include_edytor.js: Kod window.onload = function() { var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('edytor')); var oFCKeditor = new FCKeditor('text', '490', '400'); oFCKeditor.ToolbarSet = 'Default'; oFCKeditor.BasePath = 'edytor/'; oFCKeditor.ReplaceTextarea(); } include_edytor_full.js: Kod window.onload = function() { var sBasePath = document.location.pathname.substring(0,document.location.pathname.lastIndexOf('edytor')); var oFCKeditor = new FCKeditor('text_full', '490', '400'); oFCKeditor.ToolbarSet = 'Default'; oFCKeditor.BasePath = 'edytor/'; oFCKeditor.ReplaceTextarea(); } Oczywiście uruchamiam na początku FCK Editor w sekcji head: <script type="text/javascript" src="edytor/fckeditor.js"></script> Rezultat jest taki, że edytor zamiast 2x pojawić się, uruchamia się tylko w ostatnim textarea. Czy ktoś wie jak uruchomić 2 edytory FCK w jednym dokumencie? Z góry dzięki za pomoc (IMG:http://forum.php.pl/style_emoticons/default/smile.gif) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 25.09.2025 - 23:57 |