can i Shortcut this code ?
4 posters
Page 1 of 1
can i Shortcut this code ?
hello everyone.
i have this BBcode :
- Code:
$(function() {
if (!$.sceditor) return;
$.sceditor.command.set('overline', {
exec : function() {
this.insertText('[table style="display:inline-block;border-top:1px solid;"][tr][td]','[/td][/tr][/table]');
},
txtExec : function() {
this.insertText('[table style="display:inline-block;border-top:1px solid;"][tr][td]','[/td][/tr][/table]');
},
tooltip : 'OVERLINE'
});
toolbar = toolbar.replace(/left/, 'overline,left');
});
- Code:
[table style="display:inline-block;border-top:1px solid;"][tr][td]','[/td][/tr][/table]
i want to shortcut this code
and make it like that :
- Code:
[OVERLINE]','[/OVERLINE]
But with the Ability
i think you know what i meen
thanks a lot ♥
Re: can i Shortcut this code ?
Why do you want to shorten it?
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.
Re: can i Shortcut this code ?
because it's difficult to use when he's long
and
i like it short
i'm sorry i know my request very hard
thanks,
Re: can i Shortcut this code ?
Then try to sensor them by Admin Control Panel -> General -> Censoring -> Word
Add new word
Add new word
- Code:
*[OVERLINE]*
- Code:
[table style="display:inline-block;border-top:1px solid;"][tr][td]
Re: can i Shortcut this code ?
SarkZKalie wrote:Then try to sensor them by Admin Control Panel -> General -> Censoring -> Word
Add new wordReplacement
- Code:
*[OVERLINE]*
Every you type [OVERLINE] to posts, it'll automatically convert to words replaced.
- Code:
[table style="display:inline-block;border-top:1px solid;"][tr][td]
I'M VERY SORRY BUT THAT'S DIDN'T WORK
Re: can i Shortcut this code ?
Yeah, @SarkZKalie good idea but doesn't work.
@coolkool you can short it a little by using class like for example:
And put in CSS following:
@coolkool you can short it a little by using class like for example:
- Code:
[table class="overline"][tr][td]text[/td][/tr][/table]
And put in CSS following:
- Code:
.overline {
display:inline-block;
border-top:1px solid;
}
Re: can i Shortcut this code ?
Ikerepc wrote:Yeah, @SarkZKalie good idea but doesn't work.
@coolkool you can short it a little by using class like for example:
- Code:
[table class="overline"][tr][td]text[/td][/tr][/table]
And put in CSS following:
- Code:
.overline {
display:inline-block;
border-top:1px solid;
}
doesn't work pro
Re: can i Shortcut this code ?
coolkool wrote:Ikerepc wrote:Yeah, @SarkZKalie good idea but doesn't work.
@coolkool you can short it a little by using class like for example:
- Code:
[table class="overline"][tr][td]text[/td][/tr][/table]
And put in CSS following:
- Code:
.overline {
display:inline-block;
border-top:1px solid;
}
doesn't work pro
I just tried that out and it works fine for me...
Check your code in CSS, be sure that you saved that and try again. You need only class in table, not whole code for that.
Similar topics
» How to disable ALT R shortcut.
» shortcut images
» When i paste a long code via [code][/code] the page expands
» help in this code . the effect on code > add button to Put under the colored writing
» When I edited a message with a code "code" it adds a space
» shortcut images
» When i paste a long code via [code][/code] the page expands
» help in this code . the effect on code > add button to Put under the colored writing
» When I edited a message with a code "code" it adds a space
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum