Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: [TinyMCE]Problem z zwracaniem htmlu
Forum PHP.pl > Forum > Przedszkole
qba10
Witam
Mam problem z TinyMCE.
Edytor nie zwraca mi htmlu tylko sam tekst.
Oto moj plik konfiguracyjny:
  1. <script type="text/javascript">
  2. tinyMCE.init({
  3. // General options
  4. mode : "textareas",
  5. theme : "advanced",
  6. plugins : "safari,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,ies
  7. ell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,pa
  8. te,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,temp
  9. ate",
  10. language : "pl",
  11. convert_fonts_to_spans : true,
  12. editor_selector : "Editor",
  13.  
  14.  
  15.  
  16.  
  17.  
  18. // Theme options
  19. theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justif
  20. center,justifyright,justifyfull,styleselect,formatselect,fontselect,fontsizesele
  21. t",
  22. theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,out
  23. ent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|
  24. insertdate,inserttime,preview,|,forecolor,backcolor",
  25. theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iesp
  26. ll,media,advhr,|,print,|,ltr,rtl,|,fullscreen",
  27. theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acro
  28. ym,del,ins,attribs,|,visualchars,nonbreaking,template,pagebreak",
  29. theme_advanced_toolbar_location : "top",
  30. theme_advanced_toolbar_align : "left",
  31. theme_advanced_statusbar_location : "bottom",
  32. theme_advanced_resizing : true,
  33.  
  34.  
  35.  
  36. // Drop lists for link/image/media/template dialogs
  37. template_external_list_url : "lists/template_list.js",
  38. external_link_list_url : "lists/link_list.js",
  39. external_image_list_url : "lists/image_list.js",
  40. media_external_list_url : "lists/media_list.js",
  41.  
  42. // Replace values for the template plugin
  43. template_replace_values : {
  44. username : "Some User",
  45. staffid : "991234"
  46. }
  47. });


Odświeżam temat.
Czy wam TinyMCE odrazu zwraca tekst z html'em czy trzeba cos w swoim configu zmienic? Bo szukałem na google i nic nie znalazlem.....
hiszpanespaniol
czy chodzi o to, że w tiny wyswietla Ci też kod html oprócz tekstu? czy może o to, że wyświetla tekst który jest wewnątrz tagów html, ale tagów nie wyświetla i nie uwzględnia ich wyświetlając tekst (czyli leci ciurkiem jakgdyby tekst nie był opisany html'em)?



sprawdź jeszcze, czy nie usuwasz gdziesz po drodze (np w php'ie) tagów html
qba10
Jesteś wielki.
Po prostu html nie przechodzil przez automatyczny filter.
Gdybym mógł dał bym ci 2 pomógł biggrin.gif
Jeszcze raz thx smile.gif
hiszpanespaniol
to daj "pomógł" też do tego posta winksmiley.jpg

Nie ma sprawy, ciesze się, że pomogłem. z tinyMCE sie też swoją drogą męczę już dosyc długo
Dzięki Tobie mam trzy szóstki ułożone w trójkąt hehe
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.