1 // ----------------------------------------------------------------------------
3 // ----------------------------------------------------------------------------
4 // Copyright (C) 2008 Jay Salvat
5 // http://markitup.jaysalvat.com/
6 // ----------------------------------------------------------------------------
8 // http://en.wikipedia.org/wiki/Bbcode
9 // ----------------------------------------------------------------------------
10 // Feel free to add more tags
11 // ----------------------------------------------------------------------------
13 previewParserPath: '', // path to your BBCode parser
15 {name:'Bold', key:'B', openWith:'[b]', closeWith:'[/b]'},
16 {name:'Italic', key:'I', openWith:'[i]', closeWith:'[/i]'},
17 {name:'Underline', key:'U', openWith:'[u]', closeWith:'[/u]'},
18 {separator:'---------------' },
19 {name:'Picture', key:'P', replaceWith:'[img][![Url]!][/img]'},
20 {name:'Link', key:'L', openWith:'[url=[![Url]!]]', closeWith:'[/url]', placeHolder:'Your text to link here...'},
21 {separator:'---------------' },
22 {name:'Size', key:'S', openWith:'[size=[![Text size]!]]', closeWith:'[/size]',
24 {name:'Big', openWith:'[size=200]', closeWith:'[/size]' },
25 {name:'Normal', openWith:'[size=100]', closeWith:'[/size]' },
26 {name:'Small', openWith:'[size=50]', closeWith:'[/size]' }
28 {separator:'---------------' },
29 {name:'Bulleted list', openWith:'[list]\n', closeWith:'\n[/list]'},
30 {name:'Numeric list', openWith:'[list=[![Starting number]!]]\n', closeWith:'\n[/list]'},
31 {name:'List item', openWith:'[*] '},
32 {separator:'---------------' },
33 {name:'Quotes', openWith:'[quote]', closeWith:'[/quote]'},
34 {name:'Code', openWith:'[code]', closeWith:'[/code]'},
35 {separator:'---------------' },
36 {name:'Clean', className:"clean", replaceWith:function(markitup) { return markitup.selection.replace(/\[(.*?)\]/g, "") } },
37 {name:'Preview', className:"preview", call:'preview' }