Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [JavaScript]Tinymce dodałem przycik ale nie działa tak dobrze.W
cykcykacz
post 21.05.2013, 13:05:16
Post #1





Grupa: Zarejestrowani
Postów: 550
Pomógł: 9
Dołączył: 29.05.2009
Skąd: Ostrów Wielkopolski

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


Hej,
mam problem dodałem nowy przycik do edytora ale działa on tylko jak się kilka na przycisk, nie widać po nim że jest aktywny ani niemogę go wyłączyć ktoś może pomóc podaje linka http://szymoon.nazwa.pl/tinymce/index4.html Chodzi o przycik który ma ikone literki K.

[JAVASCRIPT] pobierz, plaintext
  1. mode : "textareas",
  2. theme : "advanced",
  3.  
  4. content_css: 'szymon.css',
  5.  
  6. formats: {
  7. smallcaps: {inline : 'span', 'classes': 'small-caps', styles : {fontvariant : 'small-caps'}},
  8. },
  9.  
  10. theme_advanced_buttons1 : "mybutton,bold,italic,smallcaps",
  11. theme_advanced_buttons2 : "",
  12. theme_advanced_buttons3 : "",
  13. theme_advanced_toolbar_location : "top",
  14. theme_advanced_toolbar_align : "left",
  15. theme_advanced_statusbar_location : "bottom",
  16. remove_linebreaks : false,
  17. //entities: "160,nbsp",
  18. entity_encoding: 'raw',
  19. plugins : 'inlinepopups',
  20. plugins: 'wordcount',
  21. setup: function( ed ) {
  22. ed.addButton('smallcaps', {
  23. title: 'Small-caps',
  24. image: 'http://wordpress3.localhost/wp-content/plugins/img/kapitalik.jpg',
  25. onclick: function(){
  26. ed.focus();
  27. ed.formatter.toggle( 'smallcaps' );
  28. }
  29. });
  30.  
  31. // Highlight the smallcaps button when the cursor is on small-caps text
  32. ed.onNodeChange.add(function(ed, cm, e) {
  33. // Activates the link button when the caret is placed in a anchor element
  34. cm.setActive('smallcaps', ed.formatter.match('smallcaps'));
  35. });
[JAVASCRIPT] pobierz, plaintext
Go to the top of the page
+Quote Post

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

 



RSS Wersja Lo-Fi Aktualny czas: 1.07.2025 - 06:46