How to add this in sceditor button
3 posters
Page 1 of 1
How to add this in sceditor button
- Code:
[table style="padding: 8px 15px; border-width: 1px 1px 1px 5px; border-style: solid; border-color: #eee #eee #eee rgb(107, 166, 94); background: #fafafa;color: #666666;border-radius: 3px;"]
[tr][td][b][color=#6ba65e]<i class="fa fa-hashtag"></i> Keywords[/color][/b] #text[/td]
[/tr]
[/table]
Help me to add this in sceditor button
Thanks in advance
Last edited by sivastar on Wed 8 Mar 2023 - 16:44; edited 1 time in total
Razor12345- Support Moderator
- Posts : 1582
Reputation : 268
Language : Ukr, Rus, Eng
Location : Ukraine
sivastar and SarkZKalie like this post
Re: How to add this in sceditor button
Hi @Razor12345
Thank you for reply.
but i want the code like this
Kindly edit this Javascript
Thank you for reply.
but i want the code like this
- Code:
$(function(){
var CopyrightNotice = 'Copyright StafferGroupBR 2013 / All right reserved.';
$(function(){
$('<a class="sceditor-button" unselectable="on"><div unselectable="on" style="background-image:url(https://i.servimg.com/u/f56/17/71/75/73/revu-f11.png)">a</div></a>').insertBefore('.sceditor-button-size').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText("<p class=\'einfo\'>","</p>");
});
});
});
Kindly edit this Javascript
Re: How to add this in sceditor button
Hey there,
All you need to do is add an other javascript with this code in it:
Kind regards,
TC.
All you need to do is add an other javascript with this code in it:
- Code:
$(function(){
var CopyrightNotice = 'Copyright StafferGroupBR:tm: :copyright: 2013 / All right reserved.';
$(function(){
$('<a class="sceditor-button" unselectable="on"><div unselectable="on" style="background-image:url(https://i.servimg.com/u/f56/17/71/75/73/revu-f11.png)">a</div></a>').insertBefore('.sceditor-button-size').click(function(){
$('#text_editor_textarea').sceditor("instance").insertText('[table style="padding: 8px 15px; border-width: 1px 1px 1px 5px; border-style: solid; border-color: #eee #eee #eee rgb(107, 166, 94); background: #fafafa;color: #666666;border-radius: 3px;"][tr][td][b][color=#6ba65e]<i class="fa fa-hashtag"></i> Keywords[/color][/b] #','[/td][/tr][/table]');
});
});
});
Kind regards,
TC.
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
sivastar, SarkZKalie, TonnyKamper and Razor12345 like this post
TheCrow likes this post
Re: How to add this in sceditor button
Problem solved & topic archived.
|
Forum of the Forums Forumotion Rules | Tips & Tricks | FAQ | Did you forget your password? |
*** The Support Forum will never ask you for your email or password, so please do not post them anywhere! ***
No support via PM!
Similar topics
» New button on sceditor
» SCEditor button icon change
» i want to add more sizes in the size button in sceditor
» How can I add Admin/Mod color button on sceditor?
» icon wont change sceditor-button-messages div
» SCEditor button icon change
» i want to add more sizes in the size button in sceditor
» How can I add Admin/Mod color button on sceditor?
» icon wont change sceditor-button-messages div
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum