Файл: wysiwyg/markitup/sets/default-en/set.js
Строк: 65
<?php
// ----------------------------------------------------------------------------
// 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 = {
    resizeHandle: false,
    onShiftEnter:      {keepDefault:false, replaceWith:'<br />n'},
    onCtrlEnter:      {keepDefault:false, openWith:'n<p>', closeWith:'</p>'},
    onTab:            {keepDefault:false, replaceWith:'    '},
    markupSet:  [
        {name:'Bold', key:'B', openWith:'<b>', closeWith:'</b>', className: 'btnBold'},
        {name:'Italic', key:'I', openWith:'<i>', closeWith:'</i>', className: 'btnItalic'},
        {name:'Underline', key:'U', openWith:'<u>', closeWith:'</u>', className: 'btnUnderline'},
        {name:'Strikethrough', key:'S', openWith:'<s>', closeWith:'</s>', className: 'btnStroke'},
        {name:'List', openWith:'    <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ul>n', closeBlockWith:'n</ul>', className: 'btnOl'},
        {name:'Ordered list', openWith:'    <li>', closeWith:'</li>', multiline:true, openBlockWith:'<ol>n', closeBlockWith:'n</ol>', className: 'btnUl'},
        {name:'Quote', openWith:'<blockquote>[![Quote]!]', closeWith:'</blockquote>', className: 'btnQuote'},
        {name:'Link', key:'L', openWith:'<a href="[![Link URL:!:http://]!]">', closeWith:'</a>', placeHolder:'Link title...', className: 'btnLink'},
        {name:'Image from URL', replaceWith:'<img src="[![Image URL:!:http://]!]" alt="[![Image description]!]" />', className: 'btnImg'},
        {name:'Upload Image', className: 'btnImgUpload', beforeInsert: function(markItUp) { InlineUpload.display(markItUp) }},
        {name:'YouTube Video', openWith:'<youtube>[![YouTube Video URL]!]', closeWith:'</youtube>', className: 'btnVideoYoutube'},
    ]
}
?>