É Muito Simples!
Veja bem!
Esta tag abre a função! - Código:
jQuery(document).ready(function() {
Esta tag denomina o botão. (Oque voce Vê) - Código:
jQuery('#text_editor_select_controls #other button:eq(4)').after('<br><button onclick="ID-DA-FUNÇÃO();return false">NOME-DA-FUNÇÃO</button>');
O Senhor pode adicionar quantos quiser, mas terá que ser antes de
});, veja!
}); Fica bem no meio!
Entre o botão e seu conteudo!
Este é o conteudo! - Código:
function ID-DA-FUNÇÃO(){
bbfontstyle('CONTEUDO-DA-FUNÇÃO','');selectWysiwyg(this,'other');return false}
O ID-DA-FUNÇÃO deve ser igual ao primeiro ID-DA-FUNÇÃO!
O Id do botão, irá procurar o ID da função, para que possa realizar a função correta!
Veja o Exemplo:- Spoiler:
- Código:
jQuery(document).ready(function() {
BOTÃO 1
BOTÃO 2
BOTÃO 3
});
BOTÃO 1
BOTÃO 2
BOTÃO 3
Aplique este js,
Investimento: Todas as Páginas!
Veja os nomes que apareceram, e edite conforme queira!
- Código:
jQuery(document).ready(function() {
jQuery('#text_editor_select_controls #other button:eq(4)').after('<br><button onclick="ID-DA-FUNÇÃO();return false">NOME-DA-FUNÇÃO</button>');
jQuery('#text_editor_select_controls #other button:eq(4)').after('<br><button onclick="ID-DA-FUNÇÃO();return false">NOME-DA-FUNÇÃO</button>');
});
function ID-DA-FUNÇÃO(){
bbfontstyle('CONTEUDO-DA-FUNÇÃO','');selectWysiwyg(this,'other');return false}
function ID-DA-FUNÇÃO(){
bbfontstyle('CONTEUDO-DA-FUNÇÃO','');selectWysiwyg(this,'other');return false}