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
etabliocms_core-0.0.12 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.11 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.10 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.9 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.8 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.7 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.6 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.5 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.4 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.3 vendor/assets/javascripts/markitup/sets/default/set.js
etabliocms_core-0.0.2 vendor/assets/javascripts/markitup/sets/default/set.js
mail_engine-0.1.15 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.15 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.14 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.14 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.13 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.13 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.12 public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.12 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js
mail_engine-0.1.11 test/dummy/public/javascripts/mail_engine/markitup/sets/default/set.js