Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> tinyMCE i filmy z YouTube
parzol
post
Post #1





Grupa: Zarejestrowani
Postów: 135
Pomógł: 1
Dołączył: 7.05.2005

Ostrzeżenie: (0%)
-----


Witam.

Korzystam z najnowszego tinyMCE. Niestety mam problem z dodawaniem filmów z Youtube na swoją stronę. Jeśli dodam kod YT poprzed edycje HTML w tinyMCE to po zapisie strony usuwa mi znaczniki object i embed. Szukałem w internecie rozwiązania jednak nic nie działa. Czy ktoś rozwiązał ten problem skutecznie?

Dodam, że nie korzystam z żadnych gotowych CMS. Czysty kod HTML/JS dla strony.


Pozdrawiam,
Parzol.

Ten post edytował parzol 16.01.2009, 14:14:08
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
masterix
post
Post #2





Grupa: Zarejestrowani
Postów: 93
Pomógł: 0
Dołączył: 7.09.2004

Ostrzeżenie: (0%)
-----


[JAVASCRIPT] pobierz, plaintext
  1. tinyMCE.init({
  2. // General options
  3. mode : "textareas",
  4. theme : "advanced",
  5. plugins : "safari,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink
    ,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,c
    ontextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xh
    tmlxtras,template,imagemanager,filemanager"
    ,
  6. media_strict: false,
  7. extended_valid_elements: "object[type|data|width|height|classid|codebase],param[name|value],embed[src
    |type|width|height|flashvars|wmode]"
    ,
  8.  
  9. // Theme options
  10. theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justif
    ycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizese
    lect"
    ,
  11. theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,out
    dent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|
    ,insertdate,inserttime,preview,|,forecolor,backcolor"
    ,
  12. theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iesp
    ell,media,advhr,|,print,|,ltr,rtl,|,fullscreen"
    ,
  13. theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,c
    ite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pa
    gebreak,|,insertfile,insertimage"
    ,
  14. theme_advanced_toolbar_location : "top",
  15. theme_advanced_toolbar_align : "left",
  16. theme_advanced_statusbar_location : "bottom",
  17. theme_advanced_resizing : true,
  18. width : 550,
  19. height : 350,
  20.  
  21. // Example content CSS (should be your site CSS)
  22. content_css : "/assets/css/style.css",
  23.  
  24. // Drop lists for link/image/media/template dialogs
  25. template_external_list_url : "assets/js/tiny_mce/template_list.js",
  26. external_link_list_url : "assets/js/tiny_mce/link_list.js",
  27. external_image_list_url : "assets/js/tiny_mce/image_list.js",
  28. media_external_list_url : "assets/js/tiny_mce/media_list.js"
  29.  
  30.  
  31.  
  32. });
[JAVASCRIPT] pobierz, plaintext
Tak wygląda obecnie.
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 30.12.2025 - 00:33