Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- BBCodeBar = {
- markupSet: [
- {name:'Gras : [b]gras[/b]', key:'B', openWith:'[b]', closeWith:'[/b]', className:'markItUpBold'}, {name:'Italique : [i]italique[/i]', key:'I', openWith:'[i]', closeWith:'[/i]', className:'markItUpItalic'}, {name:'Souligné : [u]souligné[/u]', key:'U', openWith:'[u]', closeWith:'[/u]', className:'markItUpUnderline'}, {name:'Barré : [s]barré[/s]', key:'S', openWith:'[s]', closeWith:'[/s]', className:'markItUpStroke'},
- {separator:'|'},
- {name:'Paragraphe : [p]Paragraphe[/p]', openWith:'[p]', closeWith:'[/p]', className:'markItUpParagraph'}, {name:'Centré : [center]centré[/center]', openWith:'[center]', closeWith:'[/center]', className:'markItUpCenter'}, {name:'Droite : [right]droite[/right]', openWith:'[right]', closeWith:'[/right]', className:'markItUpRight'}, {name:'Citation : [quote]Citation[/quote]', openWith:'[quote]', closeWith:'[/quote]', className:'markItUpQuote'},
- {separator:'|'},
- {name:'Liste : [ul][li]élément[/li][/ul]', openWith:'[ul]\n', closeWith:'\n[/ul]', className:'markItUpListUL'}, {name:'Liste Numéroté : [ol][li]élément[/li][/ol]', openWith:'[ol]\n', closeWith:'\n[/ol]', className:'markItUpListOL'}, {name:'Element de liste : [li]élément[/li]', openWith:'[li]', closeWith:'[/li]', className:'markItUpListLI'},
- {separator:'|' },
- {name:'Image : [img]Image[/img]', key:'P', replaceWith:'[img][![Url]!][/img]', className:'markItUpPicture'}, {name:'URL : [url=Page URL]Nom de la page[/url]', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', className:'markItUpLink'}, {name:'E-mail : [email]Email[/email]', key:'M', replaceWith:'[email][![Mail]!][/email]', className:'markItUpMail'},
- {separator:'|'},
- {name:'Taille des caractères : [size=X]texte[/size]', className:'markItUpSize',
- dropMenu :[
- {name:'Tout petit', openWith:'[size=7]', closeWith:'[/size]' },
- {name:'Petit', openWith:'[size=9]', closeWith:'[/size]' },
- {name:'Normale', openWith:'[size=12]', closeWith:'[/size]' },
- {name:'Grand', openWith:'[size=18]', closeWith:'[/size]' },
- {name:'Très grand', openWith:'[size=24]', closeWith:'[/size]' },
- ]
- },
- {name:'Couleur : [color=couleur]texte[/color]', className:'markItUpColors', openWith:'[color=[![Color]!]]', closeWith:'[/color]',
- dropMenu: [
- {name:'Jaune', openWith:'[color=yellow]', closeWith:'[/color]', className:"col1-1" },
- {name:'Orange', openWith:'[color=orange]', closeWith:'[/color]', className:"col1-2" },
- {name:'Rouge', openWith:'[color=red]', closeWith:'[/color]', className:"col1-3" },
- {name:'Bleu', openWith:'[color=blue]', closeWith:'[/color]', className:"col2-1" },
- {name:'Violet', openWith:'[color=purple]', closeWith:'[/color]', className:"col2-2" },
- {name:'Vert', openWith:'[color=green]', closeWith:'[/color]', className:"col2-3" },
- {name:'Blanc', openWith:'[color=white]', closeWith:'[/color]', className:"col3-1" },
- {name:'Gris', openWith:'[color=gray]', closeWith:'[/color]', className:"col3-2" },
- {name:'Noir', openWith:'[color=black]', closeWith:'[/color]', className:"col3-3" }
- ]
- },
- ]
- };
- jQuery(document).ready(function() {
- jQuery('#addComment textarea').markItUp(BBCodeBar);
- });
- $(document).ready(function() {
- if (jQuery('.markItUp').length == 0) {
- jQuery('#addComment textarea').markItUp({markupSet: []});
- }
- jQuery('#SmiliesSupport').appendTo('.markItUpHeader ul:first-child');
- jQuery('#allsmilies').mouseover(function(){
- jQuery("#addComment textarea").focus();
- jQuery('#smiliesdiv').css('display','');
- });
- jQuery('#smiliesdiv a').click(function() {
- emoticon = jQuery(this).attr("title");
- jQuery.markItUp({ replaceWith:emoticon });
- jQuery('#smiliesdiv').css('display','none');
- return false;
- });
- });
Add Comment
Please, Sign In to add comment