Witam używam edytora ckeditor i mój problem polega na tym, że gdy wstawiłem edytor do panelu administracyjnego w miejsce "tresc newsa" to po próbie dodania skrypt nie widzi tego, że coś w tym edytorze zapisałem o to cały kod moich newsów:


  1. <tr height="10">
  2. <td>Tytuł:</td>
  3. <td><input type="text" name="tytul" size="30" maxlength="30"></td>
  4. <tr height="10">
  5. <td>Opis:</td>
  6. <td><input type="text" name="opis" size="30" maxlength="35"></td>
  7. </tr>
  8. <tr height="10">
  9. <td>Autor:</td>
  10. <td><input type="text" name="autor" size="30" maxlength="10"> </td>
  11. </tr>
  12. <tr height="10">
  13. <td>Treść newsa:</td>
  14. <td>
  15. <form action="/sample_posteddata.php" method="post">
  16. <textarea cols="80" id="editor1" name="editor1" rows="10"> </textarea>
  17. <script type="text/javascript">
  18. //<![CDATA[
  19.  
  20. CKEDITOR.replace( 'editor1',
  21. {
  22. fullPage : true
  23. });
  24.  
  25. //]]>
  26. </script></td>
  27. </tr>
  28. <tr>
  29. <td><input value="Dodaj Newsa" name=dodaj type="submit"></td><td><button type="reset">Reset</button></td>
  30. </tr>


już wiem co nie tak smile.gif Zapomniałem o name="tresc" w textarea


może komuś się przyda, działający kod

  1. <td>Treść newsa:</td>
  2. <td>
  3. <form action="/sample_posteddata.php" method="post">
  4. <textarea name="tresc" cols="80" id="editor1" name="editor1" rows="10"> </textarea>
  5. <script type="text/javascript">
  6. //<![CDATA[
  7.  
  8. CKEDITOR.replace( 'editor1',
  9. {
  10. fullPage : true
  11. });
  12.  
  13. //]]>
  14. </script></td>
  15. </tr>