// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2008 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
mySettings = {
nameSpace: "html",
onShiftEnter: {keepDefault:false, replaceWith:'
\n'},
onCtrlEnter: {keepDefault:false, openWith:'\n
', closeWith:'
\n'},
onTab: {keepDefault:false, openWith:' '},
markupSet: [
{name:'Heading 1', key:'1', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Heading 2', key:'2', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Heading 3', key:'3', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Heading 4', key:'4', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Heading 5', key:'5', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Heading 6', key:'6', openWith:'', closeWith:'
', placeHolder:'Your title here...' },
{name:'Paragraph', openWith:'', closeWith:'
' },
{separator:'---------------' },
{name:'Bold', key:'B', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' },
{name:'Italic', key:'I', openWith:'(!(|!|)!)', closeWith:'(!(|!|)!)' },
{name:'Stroke through', key:'S', openWith:'', closeWith:'' },
{separator:'---------------' },
{name:'Ul', openWith:'\n' },
{name:'Ol', openWith:'\n', closeWith:'
\n' },
{name:'Li', openWith:'', closeWith:'' },
{separator:'---------------' },
{name:'Picture', key:'P', replaceWith:'' },
{name:'Link', key:'L', openWith:'', closeWith:'', placeHolder:'Your text to link...' },
{separator:'---------------' },
{name:'Clean', className:'clean', replaceWith:function(markitup) { return markitup.selection.replace(/<(.*?)>/g, "") } },
{name:'Preview', className:'preview', call:'preview' }
]
}