Hello everyone,
I am trying to install two buttons with drop-down list on the new editor. A tag for moderation (so invisible for members) and one for my members.
I managed to get by for simple buttons but buttons with drop-down list, I confess to have some difficulties.
Here is the script for a button.
Do you have an idea to solve this trouble??
Thanks in advance for the attention you bring to it
I am trying to install two buttons with drop-down list on the new editor. A tag for moderation (so invisible for members) and one for my members.
I managed to get by for simple buttons but buttons with drop-down list, I confess to have some difficulties.
Here is the script for a button.
- Code:
$(function(){$(function(){
$(' <a class="sceditor-button" unselectable="on" title="Name button"><div unselectable="on" style="background-image:url(Link image)">Name button</div></a>').insertBefore('.sceditor-button-emoticon').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[your bbcode]","[/your bbcode]");
});
})});
Do you have an idea to solve this trouble??
Thanks in advance for the attention you bring to it