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.
mode : "textareas",
theme : "advanced",
content_css: 'szymon.css',
formats: {
smallcaps: {inline : 'span', 'classes': 'small-caps', styles : {fontvariant : 'small-caps'}},
},
theme_advanced_buttons1 : "mybutton,bold,italic,smallcaps",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_statusbar_location : "bottom",
remove_linebreaks : false,
//entities: "160,nbsp",
entity_encoding: 'raw',
plugins : 'inlinepopups',
plugins: 'wordcount',
setup: function( ed ) {
ed.addButton('smallcaps', {
title: 'Small-caps',
image: 'http://wordpress3.localhost/wp-content/plugins/img/kapitalik.jpg',
onclick: function(){
ed.focus();
ed.formatter.toggle( 'smallcaps' );
}
});
// Highlight the smallcaps button when the cursor is on small-caps text
ed.onNodeChange.add(function(ed, cm, e) {
// Activates the link button when the caret is placed in a anchor element
cm.setActive('smallcaps', ed.formatter.match('smallcaps'));
});