// ---------------------------------------------------------------------------- // 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:'
\n'}, onCtrlEnter: {keepDefault:true}, onTab: {keepDefault:false, replaceWith:' '}, markupSet: [ {name:'Жирный', key:'B', openWith:'', closeWith:'', className: 'btnBold'}, {name:'Наклонный', key:'I', openWith:'', closeWith:'', className: 'btnItalic'}, {name:'Подчеркнутый', key:'U', openWith:'', closeWith:'', className: 'btnUnderline'}, {name:'Зачеркнутый', key:'S', openWith:'', closeWith:'', className: 'btnStroke'}, {name:'Список', openWith:'
  • ', closeWith:'
  • ', multiline:true, openBlockWith:'', className: 'btnOl'}, {name:'Нумерованный список', openWith:'
  • ', closeWith:'
  • ', multiline:true, openBlockWith:'
      \n', closeBlockWith:'\n
    ', className: 'btnUl'}, {name:'Цитата', openWith:'
    [![Текст цитаты]!]', closeWith:'
    ', className: 'btnQuote'}, {name:'Ссылка', key:'L', openWith:'', closeWith:'', placeHolder:'Заголовок ссылки...', className: 'btnLink'}, {name:'Фото из Интернета', replaceWith:'[![Описание]!]', className: 'btnImg'}, {name:'Фото с компьютера', className: 'btnImgUpload', beforeInsert: function(markItUp) { InlineUpload.display(markItUp) }}, {name:'Видео YouTube', openWith:'[![Ссылка на ролик YouTube]!]', closeWith:'', className: 'btnVideoYoutube'}, {name:'Видео Facebook', openWith:'[![Ссылка на ролик Facebook]!]', closeWith:'', className: 'btnVideoFacebook'}, {name:'Код', openWith:'', closeWith:'', className: 'btnCode'} ] }