| Server IP : 180.180.241.3 / Your IP : 216.73.216.35 Web Server : Microsoft-IIS/7.5 System : Windows NT NETWORK-NHRC 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.3.28 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/AppServ/www/news/plugins/content/discussbot/markitup/sets/default/ |
Upload File : |
// ----------------------------------------------------------------------------
// markItUp!
// ----------------------------------------------------------------------------
// Copyright (C) 2011 Jay Salvat
// http://markitup.jaysalvat.com/
// ----------------------------------------------------------------------------
// Html tags
// http://en.wikipedia.org/wiki/html
// ----------------------------------------------------------------------------
// Basic set. Feel free to add more tags
// ----------------------------------------------------------------------------
var mySettings = {
onShiftEnter: {keepDefault: false, replaceWith: '<br />\n'},
onCtrlEnter: {keepDefault: false, openWith: '\n<p>', closeWith: '</p>'},
onTab: {keepDefault: false, replaceWith: ' '},
markupSet: [
{name: 'Bold', key: 'B', openWith:'(!(<strong>|!|<b>)!)', closeWith: '(!(</strong>|!|</b>)!)' },
{name: 'Italic', key: 'I', openWith:'(!(<em>|!|<i>)!)', closeWith: '(!(</em>|!|</i>)!)' },
{name: 'Stroke through', key: 'S', openWith:'<del>', closeWith: '</del>' },
{separator: '---------------' },
{name: 'Bulleted List', openWith: ' <li>', closeWith: '</li>', multiline: true, openBlockWith: '<ul>\n', closeBlockWith: '\n</ul>'},
{name: 'Numeric List', openWith: ' <li>', closeWith: '</li>', multiline: true, openBlockWith: '<ol>\n', closeBlockWith: '\n</ol>'},
{separator: '---------------' },
{name: 'Picture', key: 'P', replaceWith: '<img src="[![Source:!:http://]!]" alt="[![Alternative text]!]" />' },
{name: 'Link', key: 'L', openWith: '<a href="[![Link:!:http://]!]"(!( title="[![Title]!]")!)>', closeWith: '</a>', placeHolder: 'Your text to link...' },
{separator: '---------------' },
{name: 'Clean', className: 'clean', replaceWith: function(markitup) { return markitup.selection.replace(/<(.*?)>/g, ""); } },
{name: 'Preview', className: 'preview', call: 'preview'}
]
};