sonata_formatter_js_set_4.js 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. // -------------------------------------------------------------------
  2. // markItUp!
  3. // -------------------------------------------------------------------
  4. // Copyright (C) 2008 Jay Salvat
  5. // http://markitup.jaysalvat.com/
  6. // -------------------------------------------------------------------
  7. // Textile tags example
  8. // http://en.wikipedia.org/wiki/Textile_(markup_language)
  9. // http://www.textism.com/
  10. // -------------------------------------------------------------------
  11. // Feel free to add more tags
  12. // -------------------------------------------------------------------
  13. var markitup_sonataTextileSettings = {
  14. previewParserPath: '', // path to your Textile parser
  15. onShiftEnter: {keepDefault:false, replaceWith:'\n\n'},
  16. markupSet: [
  17. {name:'Heading 1', key:'1', openWith:'h1(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  18. {name:'Heading 2', key:'2', openWith:'h2(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  19. {name:'Heading 3', key:'3', openWith:'h3(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  20. {name:'Heading 4', key:'4', openWith:'h4(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  21. {name:'Heading 5', key:'5', openWith:'h5(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  22. {name:'Heading 6', key:'6', openWith:'h6(!(([![Class]!]))!). ', placeHolder:'Your title here...' },
  23. {name:'Paragraph', key:'P', openWith:'p(!(([![Class]!]))!). '},
  24. {separator:'---------------' },
  25. {name:'Bold', key:'B', closeWith:'*', openWith:'*'},
  26. {name:'Italic', key:'I', closeWith:'_', openWith:'_'},
  27. {name:'Stroke through', key:'S', closeWith:'-', openWith:'-'},
  28. {separator:'---------------' },
  29. {name:'Bulleted list', openWith:'(!(* |!|*)!)'},
  30. {name:'Numeric list', openWith:'(!(# |!|#)!)'},
  31. {separator:'---------------' },
  32. {name:'Picture', replaceWith:'![![Source:!:http://]!]([![Alternative text]!])!'},
  33. {name:'Link', openWith:'"', closeWith:'([![Title]!])":[![Link:!:http://]!]', placeHolder:'Your text to link here...' },
  34. {separator:'---------------' },
  35. {name:'Quotes', openWith:'bq(!(([![Class]!]))!). '},
  36. {name:'Code', openWith:'@', closeWith:'@'},
  37. // {separator:'---------------' },
  38. // {name:'Preview', call:'preview', className:'preview'}
  39. ]
  40. }