The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

can i Shortcut this code ?

View previous topic View next topic Go down

can i Shortcut this code ?

Post by coolkool on January 8th 2018, 8:08 pm

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 ♥

coolkool
Forumember

Posts : 120
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Re: can i Shortcut this code ?

Post by coolkool on January 12th 2018, 3:48 pm

up

coolkool
Forumember

Posts : 120
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Re: can i Shortcut this code ?

Post by coolkool Yesterday at 11:26 pm

up

coolkool
Forumember

Posts : 120
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Re: can i Shortcut this code ?

Post by SLGray Today at 12:22 am

Why do you want to shorten it?


When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.

avatar
SLGray
Administrator
Administrator

Male Posts : 41432
Reputation : 2840
Language : English
Location : United States

https://fmthemes.forumotion.com/

Back to top Go down

Re: can i Shortcut this code ?

Post by coolkool Today at 10:34 pm

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,

coolkool
Forumember

Posts : 120
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum