I Want solved & info & warning buttons in sceditor
3 posters
Page 1 of 1
I Want solved & info & warning buttons in sceditor
hi >>
- https://help.forumotion.com/t143140-how-to-work-this-button-automatically plz closed this topic
please i want this button :
i have this code :
- Code:
$(function(){
$(function(){
$('<a class="sceditor-button sceditor-button-sucesso" unselectable="on" title="Solved"><div unselectable="on" style="background-image:url(http://i.imgur.com/EISZPwN.png)">Solved</div></a>').insertBefore('.sceditor-button-size').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=solved][tr][td]","[/td][/tr][/table]");
});
$('<a class="sceditor-button sceditor-button-aviso" unselectable="on" title="Lock"><div unselectable="on" style="background-image:url(http://i.imgur.com/cI8SnOI.png)">Locked</div></a>').insertAfter('.sceditor-button-sucesso').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=lock][tr][td]","[/td][/tr][/table]");
});
$('<a class="sceditor-button sceditor-button-info" unselectable="on" title="Info"><div unselectable="on" style="background-image:url(http://i.imgur.com/40zM1qS.png)">Info</div></a>').insertAfter('.sceditor-button-aviso').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("[table class=info][tr][td]","[/td][/tr][/table]");
});
});
});
It puts three buttons and its own codes and working properly
But it does not show the same results that I want .. This picture of the result I'm looking for:
and thank you ..
i think @AngeTuteur can help me
Re: I Want solved & info & warning buttons in sceditor
Hello @coolkool,
You should create a CSS Style for your table.
Here's an expample:
Don't forget to edit "darkgreen" for the background color, border and text color.
You do that with all tables to get the effect in the screenshot.
You should create a CSS Style for your table.
Here's an expample:
- Code:
.solved {
background-color: darkgreen;
border: 1px solid darkgreen;
border-radius: 4px;
color: darkgreen;
}
Don't forget to edit "darkgreen" for the background color, border and text color.
You do that with all tables to get the effect in the screenshot.
Re: I Want solved & info & warning buttons in sceditor
It's great but it's not like I want and is not similar to that in the picture
Re: I Want solved & info & warning buttons in sceditor
How i said, that was an example.
You should read this topic: https://help.forumotion.com/t87870-notice-using-css-and-table
And edit the style css
You should read this topic: https://help.forumotion.com/t87870-notice-using-css-and-table
And edit the style css
Re: I Want solved & info & warning buttons in sceditor
Topic solved and archived
Lost Founder's Password |Forum's Utilities |Report a Forum |General Rules |FAQ |Tricks & Tips
You need one post to send a PM.
You need one post to send a PM.
When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
Similar topics
» Add and change buttons on sceditor
» How to do table "solved & closed", or "info", etc.
» I want to show the way spacers between the buttons sceditor
» i want buttons to get back and vice in the sceditor
» how i can get email and print buttons in sceditor ??
» How to do table "solved & closed", or "info", etc.
» I want to show the way spacers between the buttons sceditor
» i want buttons to get back and vice in the sceditor
» how i can get email and print buttons in sceditor ??
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum