Sha256: 862a6c0771da1529ad94ac28fb904643bfcdc2604d4c773e9b3c9b4424e7a296

Contents?: true

Size: 1.54 KB

Versions: 54

Compression:

Stored size: 1.54 KB

Contents

// ----------------------------------------------------------------------------
// 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 = {	
	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:'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'}
	]
}

Version data entries

54 entries across 38 versions & 4 rubygems

Version Path
mail_engine-0.1.1 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.0 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.0 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.0.1 test/dummy/public/javascripts/markitup/sets/default/set.js
rwiki-0.2.4 public/resources/markitup/sets/default/set.js
rwiki-0.2.3 public/resources/markitup/sets/default/set.js
rwiki-0.2.2 public/resources/markitup/sets/default/set.js
rwiki-0.2.1 public/resources/markitup/sets/default/set.js
rwiki-0.1.3 public/resources/markitup/sets/default/set.js
orange-sparkles-0.7.1 lib/orange-sparkles/assets/js/markitup/sets/default/set.js
orange-sparkles-0.7.0 lib/orange-sparkles/assets/js/markitup/sets/default/set.js
orange-sparkles-0.5.9 lib/orange-sparkles/assets/js/markitup/sets/default/set.js
orange-sparkles-0.5.8 lib/orange-sparkles/assets/js/markitup/sets/default/set.js
orange-sparkles-0.5.7 lib/orange-sparkles/assets/js/markitup/sets/default/set.js